1
Fork 0

Update filter format

This commit is contained in:
Jake Howard 2016-05-27 15:56:08 +01:00
parent 636600f034
commit 87268555c5
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 3 additions and 4 deletions

View file

@ -2,4 +2,4 @@ import iso8601
def format_datetime(value):
return iso8601.parse_date(str(value)).strftime("%x")
return iso8601.parse_date(str(value)).strftime("%x %-H:%M")

View file

@ -17,9 +17,8 @@
</section>
<section>
<div class="container">
<p class="text-right">
Updated: {{ article.updated }}
Date: {{ article.date|datetime }}
<p class="text-right small">
Updated: {{ article.date|datetime }}
</p>
{{ article.content }}
</div>