Skip to content
Snippets Groups Projects
Verified Commit 77b3ab10 authored by Jake's avatar Jake
Browse files

Use formatted dates on site

parent 3c1b7452
No related branches found
No related tags found
No related merge requests found
...@@ -15,9 +15,11 @@ ...@@ -15,9 +15,11 @@
"suffix": "", "suffix": "",
"alt": "" "alt": ""
}, },
"date_format": "%d.%m.%Y %H:%M Uhr",
"page": { "page": {
"published_prefix": "Veröffentlicht am: ", "published_prefix": "Veröffentlicht am: ",
"published_suffix": "", "published_suffix": "",
"published_suffix": "",
"modified_prefix": "Zuletzt geändert: ", "modified_prefix": "Zuletzt geändert: ",
"modified_suffix": "", "modified_suffix": "",
"authors_prefix": "Author(en): ", "authors_prefix": "Author(en): ",
......
...@@ -38,16 +38,16 @@ ...@@ -38,16 +38,16 @@
<div> <div>
{{ t[l].page.published_prefix }} {{ t[l].page.published_prefix }}
<abbr title="{{ page.date_created.isoformat() }}"> <time datetime="{{ page.date_created.isoformat() }}">
{{ page.date_created.isoformat() }} {{ page.date_created.strftime(t[l].date_format) }}
</abbr> </time>
{{ t[l].page.published_suffix }} {{ t[l].page.published_suffix }}
</div> </div>
<div>{{ t[l].page.modified_prefix }} <div>{{ t[l].page.modified_prefix }}
<abbr title="{{ page.date_modified.isoformat() }}"> <time datetime="{{ page.date_modified.isoformat() }}">
{{ page.date_modified.isoformat() }} {{ page.date_modified.strftime(t[l].date_format) }}
</abbr> </time>
{{ t[l].page.modified_suffix }} {{ t[l].page.modified_suffix }}
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment