diff options
author | Alan Pearce | 2023-04-18 09:29:56 +0200 |
---|---|---|
committer | Alan Pearce | 2023-04-18 09:29:56 +0200 |
commit | 4df500c33f3d3ba7b9387a2bc0447850a04d15c8 (patch) | |
tree | b9c18bc823af212dac3e67c39b5cc92f0faa18ae /templates | |
parent | 98d10546684524418a7f612cc75085b5ddc5cfaa (diff) | |
download | website-4df500c33f3d3ba7b9387a2bc0447850a04d15c8.tar.lz website-4df500c33f3d3ba7b9387a2bc0447850a04d15c8.tar.zst website-4df500c33f3d3ba7b9387a2bc0447850a04d15c8.zip |
Make date format configurable
Diffstat (limited to 'templates')
-rw-r--r-- | templates/page.html | 2 | ||||
-rw-r--r-- | templates/section.html | 2 | ||||
-rw-r--r-- | templates/taxonomy_single.html | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/page.html b/templates/page.html index bf9eca7..6651d15 100644 --- a/templates/page.html +++ b/templates/page.html @@ -11,7 +11,7 @@ <p> <i> <time datetime='{{ page.date | date(format='%+') }}' pubdate> - {{ page.date | date(format="%d %b, %Y") }} + {{ page.date | date(format=config.extra.date_format) }} </time> </i> </p> diff --git a/templates/section.html b/templates/section.html index ae365a8..c0808f8 100644 --- a/templates/section.html +++ b/templates/section.html @@ -14,7 +14,7 @@ <span> <i> <time datetime='{{ page.date | date(format='%+') }}' pubdate> - {{ page.date | date(format="%d %b, %Y") }} + {{ page.date | date(format=config.extra.date_format) }} </time> </i> </span> diff --git a/templates/taxonomy_single.html b/templates/taxonomy_single.html index 6afb6b2..fb65874 100644 --- a/templates/taxonomy_single.html +++ b/templates/taxonomy_single.html @@ -14,7 +14,7 @@ <span> <i> <time datetime='{{ page.date | date(format='%+') }}' pubdate> - {{ page.date | date(format="%d %b, %Y") }} + {{ page.date | date(format=config.extra.date_format) }} </time> </i> </span> |