From 4df500c33f3d3ba7b9387a2bc0447850a04d15c8 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 18 Apr 2023 09:29:56 +0200 Subject: Make date format configurable --- config.toml | 1 + templates/page.html | 2 +- templates/section.html | 2 +- templates/taxonomy_single.html | 2 +- theme.toml | 1 + 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config.toml b/config.toml index 36946e6..ca8d27a 100644 --- a/config.toml +++ b/config.toml @@ -19,6 +19,7 @@ taxonomies = [ highlight_code = true [extra] +date_format="%d %b, %Y" [[extra.main_menu]] name = "Bear" 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 @@

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 @@ 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 @@ diff --git a/theme.toml b/theme.toml index 5cc75e0..ed137c8 100644 --- a/theme.toml +++ b/theme.toml @@ -12,6 +12,7 @@ demo = "https://alanpearce.codeberg.page/zola-bearblog" # be merged with user data, some kind of prefix or nesting is preferable # Use snake_casing to be consistent with the rest of Zola [extra] +date_format="%d %b, %Y" [author] name = "Alan Pearce" -- cgit 1.4.1