From 8fe7fe6a22971188e74929c123767c2c87bbcd40 Mon Sep 17 00:00:00 2001 From: Alina Derkach Date: Wed, 17 Apr 2024 17:43:25 +0300 Subject: [PATCH] add meta tags modified: overrides/main.html modified: overrides/partials/header.html --- overrides/main.html | 13 +++++++++++++ overrides/partials/header.html | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/overrides/main.html b/overrides/main.html index f250bd7..96cc6c7 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -29,3 +29,16 @@ {% endblock %} +{% block extrahead %} +{{ super() }} + {% set title = config.site_name %} + {% if page and page.meta and page.meta.title %} + {% set title = title ~ " - " ~ page.meta.title %} + {% elif page and page.title and not page.is_homepage %} + {% set title = title ~ " - " ~ page.title %} + {% endif %} + + + + + {% endblock %} \ No newline at end of file diff --git a/overrides/partials/header.html b/overrides/partials/header.html index 2665a0b..6d7a6e1 100644 --- a/overrides/partials/header.html +++ b/overrides/partials/header.html @@ -34,7 +34,7 @@