Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Commit

Permalink
Move dates in post lists to above titles
Browse files Browse the repository at this point in the history
And include the month in the date.
  • Loading branch information
seanh committed May 15, 2022
1 parent 789b93d commit c5150b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _includes/post_item.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<li class="posts-list__item">
<p>
<span class="muted">{{ post.date | date: "%b %Y" }}</span><br/>
{% if post == page %}
{{ post.title }}&ensp;
{{ post.title }}
{% else %}
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>&ensp;
<a href="{{ post.url | relative_url }}">{{ post.title }}</a>
{% endif %}
<span class="muted">{{ post.date | date: "%Y" }}</span>
</p>
</li>

0 comments on commit c5150b8

Please sign in to comment.