Skip to content

Commit

Permalink
Merge pull request #390 from ashawley/default-date-format
Browse files Browse the repository at this point in the history
Add default date format to pagination
  • Loading branch information
ashawley authored Feb 12, 2019
2 parents fd2eb98 + f1a4c22 commit 0f30943
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@
<div class="posts">
{% for post in paginator.posts %}
<div class="post py3">
<p class="post-meta">{{ post.date | date: site.date_format }}</p>
<p class="post-meta">
{% if site.date_format %}
{{ post.date | date: site.date_format }}
{% else %}
{{ post.date | date: "%b %-d, %Y" }}
{% endif %}
</p>
<a href="{{ post.url | relative_url }}" class="post-link"><h3 class="h1 post-title">{{ post.title }}</h3></a>
<span class="post-summary">
{% if post.summary %}
Expand Down

0 comments on commit 0f30943

Please sign in to comment.