From ca9a85e9f1801e7211a695143286445e5b910356 Mon Sep 17 00:00:00 2001 From: discomrade Date: Fri, 12 Nov 2021 04:50:47 -0100 Subject: [PATCH] Improve page titles and social media cards --- templates/index.html | 15 ++++++++++++++- templates/themes/categories/frames.html | 9 +++++++++ templates/thread.html | 3 +++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index 0b48979a..db04fa05 100644 --- a/templates/index.html +++ b/templates/index.html @@ -15,7 +15,20 @@ {% include 'header.html' %} - {{ board.url }} - {{ board.title|e }} + {% set page_num %}{% for page in pages %}{% if page.selected %}{% if page.num != 1 %}{{ page.num }}{% endif %}{% endif %}{% endfor %}{% endset %} + {% set meta_subject %}{{ board.subtitle|newline_to_full_stop|e }}{% endset %} + + + + + + + + + + + + {{ board.url }} - {{ board.title|e }}{% if page_num %} - Page {{ page_num }}{% endif %}
diff --git a/templates/themes/categories/frames.html b/templates/themes/categories/frames.html index babb5da6..6b2fac38 100644 --- a/templates/themes/categories/frames.html +++ b/templates/themes/categories/frames.html @@ -123,6 +123,15 @@ {{ settings.title }} + + + + + + + + + {{ metaextra }} diff --git a/templates/thread.html b/templates/thread.html index eab2178a..dec9952c 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -17,6 +17,9 @@ + + + {% if thread.files.0.thumb %}{% endif %}