Skip to content

Commit dcf94e2

Browse files
committed
Fix post-info layout for 'Other News' on homepage
The 'post-info' CSS class is needed both for 'p' and 'span' elements. Also introduce line breaks (previously achieved with 'display: block').
1 parent 23e4341 commit dcf94e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_layouts/homepage.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h3>{{ news.other_news }}</h3>
3737
<ul>
3838
{% for post in site.categories[page.lang] offset:offset_other_left limit:number_of_other %}
3939
<li>
40-
<a href="{{ post.url }}">{{ post.title }}</a>
40+
<a href="{{ post.url }}">{{ post.title }}</a><br>
4141
<span class="post-info">{{ post.date | posted_by:post.author }}</span>
4242
</li>
4343
{% endfor %}
@@ -46,7 +46,7 @@ <h3>{{ news.other_news }}</h3>
4646
<ul>
4747
{% for post in site.categories[page.lang] offset:offset_other_right limit:number_of_other %}
4848
<li>
49-
<a href="{{ post.url }}">{{ post.title }}</a>
49+
<a href="{{ post.url }}">{{ post.title }}</a><br>
5050
<span class="post-info">{{ post.date | posted_by:post.author }}</span>
5151
</li>
5252
{% endfor %}

stylesheets/main.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ div.post h3 a {
206206

207207
div.post h3 a:hover { text-decoration: underline; }
208208

209-
p.post-info {
209+
.post-info {
210210
color: grey;
211211
font-size: 13px;
212212
line-height: 16px;

0 commit comments

Comments
 (0)