Skip to content

Commit

Permalink
use more standardized strftime formats
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmo314 committed Oct 13, 2013
1 parent decd2d4 commit 7ea3637
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/article_stub.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{%- if not articles_page or first_article_of_day %}

<h4 class="date">{{ article.date.strftime("%b %e, %G") }}</h4>
<h4 class="date">{{ article.date.strftime("%b %d, %Y") }}</h4>
{%- endif %}

<div class="post{% if article.pinned %} pinned{% endif %}">
Expand All @@ -15,9 +15,9 @@ <h2 class="title">
<div class="clear"></div>
<div class="info">
{% if article.pinned -%}
<a href="{{ SITEURL }}/{{ article.url }}">posted {{ article.date.strftime("%B %e, %l:%M %P") }}</a>
<a href="{{ SITEURL }}/{{ article.url }}">posted {{ article.date.strftime("%B %d, %I:%M %Y") }}</a>
{%- else -%}
<a href="{{ SITEURL }}/{{ article.url }}">posted at {{ article.date.strftime("%l:%M %P") }}</a>
<a href="{{ SITEURL }}/{{ article.url }}">posted at {{ article.date.strftime("%I:%M %Y") }}</a>
{%- if article.category.name != "Uncategorized" -%}
&nbsp;&middot;&nbsp;<a href="{{ SITEURL }}/{{ article.category.url }}" rel="tag">{{ article.category }}</a>
{%- endif %}
Expand Down

0 comments on commit 7ea3637

Please sign in to comment.