From d1deb8486f1f70e5ad44cb65279e52e1ed64ba89 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Tue, 31 May 2022 01:24:13 -0700 Subject: Seo Per Page --- templates/pages.html | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'templates/pages.html') diff --git a/templates/pages.html b/templates/pages.html index a9147c7..38dfd7f 100644 --- a/templates/pages.html +++ b/templates/pages.html @@ -1,4 +1,29 @@ +{# This Page Shows the 'Pages' (abridge/content/pages) eg: example.com/about/ example.com/privacy/ #} + {% 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 page.title %} + {%- set title = page.title %} + {%- else %} + {%- set title = config.title %} + {%- endif %} + + {%- if page.description %} + {%- set description = page.description %} + {%- else %} + {%- set description = config.description %} + {%- endif %} + + {{- macros_head::seo(title=title, title_addition=title_addition, description=description) }} +{%- endblock seo %} + {%- block content %}
{{ page.content | safe }} -- cgit v1.3.1