From cb64f9eb105fbb2c75f78b450765ae90d7a0b193 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Tue, 26 Dec 2023 17:26:52 +0100 Subject: [PATCH] feat: date formatting --- templates/blog-page.html | 7 ++++++- templates/section.html | 9 +++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/templates/blog-page.html b/templates/blog-page.html index 73686a1..de16a17 100644 --- a/templates/blog-page.html +++ b/templates/blog-page.html @@ -2,7 +2,12 @@ {% block content %}
../
- +{% if config.extra.date_format.post %} + {% set datefmt = config.extra.date_format.post %} +{% else %} + {% set datefmt = "%Y-%m-%dT%H:%M:%S%Z" %} +{% endif %} + {% if config.extra.author and config.extra.display_author == true %} {% endif %} diff --git a/templates/section.html b/templates/section.html index eaa5aa0..ba2561d 100644 --- a/templates/section.html +++ b/templates/section.html @@ -12,12 +12,17 @@ {% endif %} {% if paginator %} -
{% if paginator.previous %}   <{% endif %}   {{ paginator.current_index }} / {{ paginator.number_pagers }}   {% if paginator.next %}   {% endif %}
+
{% if paginator.previous %}   {% endif %}   {{ paginator.current_index }} / {{ paginator.number_pagers }}   {% if paginator.next %}   {% endif %}
{% endif %} {% endblock content %}