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 }}