From 9b5e1ca545ac611963a655b58d360684f9c34153 Mon Sep 17 00:00:00 2001 From: Nikolas Date: Sat, 16 Nov 2024 18:54:49 +0000 Subject: add section or page title as HTML title --- templates/base.html | 6 +++++- templates/photos-page.html | 4 ++-- templates/photos.html | 5 ++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/templates/base.html b/templates/base.html index 4ea65e1..400c13d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,7 +5,11 @@ - Archive - Boutalas + {% if section.title %} + {{ section.title }} + {% endif %} {% if page.title %} + {{ page.title }} + {% endif %} diff --git a/templates/photos-page.html b/templates/photos-page.html index 53f8b5c..a47b41e 100644 --- a/templates/photos-page.html +++ b/templates/photos-page.html @@ -1,4 +1,4 @@ {% extends "base.html" %} {% block body %} -

{{page.extra.caption}}

-{{page.extra.caption}} +

{{ page.title }}

+{{page.title}} {{ page.content | safe }} {% endblock body %} diff --git a/templates/photos.html b/templates/photos.html index bad4589..218a26d 100644 --- a/templates/photos.html +++ b/templates/photos.html @@ -1,14 +1,13 @@ {% extends "base.html" %} {% block body %} -

{{ section.title }}

{% for page in paginator.pages %}
{{page.extra.caption}} -
{{page.extra.caption}}
+
{{page.title}}
{% endfor %} {% if paginator.previous or paginator.next%}
-- cgit v1.2.3