all repos — homestead @ 62ad7b3e4f096bc9dfb574f3adf3372a5c8f110f

Code for my website

Make date format configurable

Alan Pearce
commit

62ad7b3e4f096bc9dfb574f3adf3372a5c8f110f

parent

93f8d13771364daa722f4217e2f9fc486c0eedd9

4 files changed, 4 insertions(+), 3 deletions(-)

jump to
M templates/page.htmltemplates/page.html
@@ -11,7 +11,7 @@ {%- if page.date %}
<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>
M templates/section.htmltemplates/section.html
@@ -14,7 +14,7 @@ <li>
<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>
M templates/taxonomy_single.htmltemplates/taxonomy_single.html
@@ -14,7 +14,7 @@ <li>
<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>
M theme.tomltheme.toml
@@ -12,6 +12,7 @@ # You don't need to prefix variables by the theme name but as this will
# 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"