diff --git a/lang.json b/lang.json index b841263018d081ae1aa0877832b4566b4a85f32a..21503f1adcc60b56d95bab645edd860702048433 100644 --- a/lang.json +++ b/lang.json @@ -15,9 +15,11 @@ "suffix": "", "alt": "" }, + "date_format": "%d.%m.%Y %H:%M Uhr", "page": { "published_prefix": "Veröffentlicht am: ", "published_suffix": "", + "published_suffix": "", "modified_prefix": "Zuletzt geändert: ", "modified_suffix": "", "authors_prefix": "Author(en): ", diff --git a/theme/templates/page.html b/theme/templates/page.html index c9babb437ce594bf19aacd49762ec2ce01ab7061..05e5017e16404998b55e326d7b12aaf5cf63b07e 100644 --- a/theme/templates/page.html +++ b/theme/templates/page.html @@ -38,16 +38,16 @@ <div> {{ t[l].page.published_prefix }} - <abbr title="{{ page.date_created.isoformat() }}"> - {{ page.date_created.isoformat() }} - </abbr> + <time datetime="{{ page.date_created.isoformat() }}"> + {{ page.date_created.strftime(t[l].date_format) }} + </time> {{ t[l].page.published_suffix }} </div> <div>{{ t[l].page.modified_prefix }} - <abbr title="{{ page.date_modified.isoformat() }}"> - {{ page.date_modified.isoformat() }} - </abbr> + <time datetime="{{ page.date_modified.isoformat() }}"> + {{ page.date_modified.strftime(t[l].date_format) }} + </time> {{ t[l].page.modified_suffix }} </div>