From c2d72e09747a2a4abe9602e1ba49a1b4649c9d3c Mon Sep 17 00:00:00 2001 From: Jieiku Date: Fri, 14 Aug 2026 15:10:15 -0700 Subject: Update for Zola 0.23.3 --- templates/pages.html | 53 +++++++++++++++++++++++++--------------------------- 1 file changed, 25 insertions(+), 28 deletions(-) (limited to 'templates/pages.html') diff --git a/templates/pages.html b/templates/pages.html index 72f4071..6d316cb 100644 --- a/templates/pages.html +++ b/templates/pages.html @@ -6,34 +6,31 @@ Some people prefer a landing page for the index, and then use a separate paginat {% extends "base.html" %} -{%- block seo %} - {{- super() }} - {%- set title_addition = "" %} - - {%- if page.title and config.title %} - {%- set title = page.title %} - {%- set title_addition = title_separator ~ config.title %} - {%- elif section.title and config.title %} - {%- set title = section.title %} - {%- set title_addition = title_separator ~ config.title %} - {%- elif page.title %} - {%- set title = page.title %} - {%- elif section.title %} - {%- set title = section.title %} - {%- else %} - {%- set title = config.title %} - {%- endif %} - - {%- if page.description %} - {%- set description = page.description %} - {%- elif section.description %} - {%- set description = section.description %} - {%- else %} - {%- set description = config.description %} - {%- endif %} - - {{- macros_seo::seo(config=config, title=title, title_addition=title_addition, description=description) }} -{%- endblock seo %} +{%- block seo -%} + {{- super() -}} + {%- set title_addition = "" -%} + {%- if page.title and config.title -%} + {%- set title = page.title -%} + {%- set title_addition = title_separator ~ config.title -%} + {%- elif section.title and config.title -%} + {%- set title = section.title -%} + {%- set title_addition = title_separator ~ config.title -%} + {%- elif page.title -%} + {%- set title = page.title -%} + {%- elif section.title -%} + {%- set title = section.title -%} + {%- else -%} + {%- set title = config.title -%} + {%- endif -%} + {%- if page.description -%} + {%- set description = page.description -%} + {%- elif section and section.description -%} + {%- set description = section.description -%} + {%- else -%} + {%- set description = config.description -%} + {%- endif -%} + {{}} +{%- endblock seo -%} {%- block content %}
-- cgit v1.3.1