From 8960a262e5cf28562edb483db49cb5cd11d0a65f Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Sat, 2 Apr 2022 19:42:31 +0200 Subject: [PATCH] Add article:published_time for news index and news items Signed-off-by: Alexander Borsuk --- templates/base.html | 11 +++++++++++ templates/news.html | 7 +++++++ 2 files changed, 18 insertions(+) diff --git a/templates/base.html b/templates/base.html index 5c3f47c5..c28f3446 100644 --- a/templates/base.html +++ b/templates/base.html @@ -27,14 +27,25 @@ + {%- if resource.description -%} + {%- endif -%} + {%- if resource.description -%} + {%- endif -%} + + {% if resource.date -%} + + {%- endif -%} + + {%- block meta -%}{%- endblock %} + diff --git a/templates/news.html b/templates/news.html index 87ad968c..61a1c9c3 100644 --- a/templates/news.html +++ b/templates/news.html @@ -1,5 +1,12 @@ {% extends 'base.html' %} +{% block meta %} +{% set latestStr = resource.subsections | sort | last %} +{% set latestSection = get_section(path=latestStr) %} +{% set latestPage = latestSection.pages | first %} + +{% endblock meta %} + {% block content %}

{{ resource.title }}