Skip to content

Commit b4ab7c9

Browse files
authored
Format news archive with dates and less ugly titles (ev3dev#312)
* Format news archive with dates and less ugly titles Fixes ev3dev#283 * Stop confusing search engines
1 parent 07ceca7 commit b4ab7c9

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

news/archive/index.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66

77
{% for post in site.posts %}
88
{% if post.categories contains "news" %}
9-
<div class="news-item">
10-
<div class="news-item-header">
11-
<h2><a href="{{ post.url }}">{{ post.title }}</a></h2>
12-
<hr/>
9+
<div class="panel panel-default">
10+
<div class="panel-heading">
11+
<h2 class="panel-title">
12+
<a href="{{ post.url }}"> {{ post.title }}</a>
13+
<span class="pull-right label font-light">{{ post.date | date_to_string }}</span>
14+
</h2>
1315
</div>
1416
</div>
1517
{% endif %}

news/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
{% if num_items >= 0 %}
1212
<div class="panel panel-default">
1313
<div class="panel-heading">
14-
<h1 class="panel-title">
14+
<h2 class="panel-title">
1515
<a href="{{ post.url }}"> {{ post.title }}</a>
1616
<span class="pull-right label font-light">{{ post.date | date_to_string }}</span>
17-
</h1>
17+
</h2>
1818
</div>
1919
<div class="panel-body">
2020
{{ post.excerpt }}

stylesheets/site-structure.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ body {
6868
}
6969

7070
// Panel title size
71-
h1.panel-title {
71+
h2.panel-title {
7272
font-size: 20px;
7373
}
7474

0 commit comments

Comments
 (0)