diff --git a/docs/reference/meta-tags.md b/docs/reference/meta-tags.md index 43b67f891..56a6ab27a 100644 --- a/docs/reference/meta-tags.md +++ b/docs/reference/meta-tags.md @@ -87,9 +87,9 @@ tags to the template: {% block extrahead %} {% set title = config.site_name %} {% if page and page.meta and page.meta.title %} - {% set title = config.site_name ~ " - " ~ page.meta.title %} + {% set title = title ~ " - " ~ page.meta.title %} {% elif page and page.title and not page.is_homepage %} - {% set title = config.site_name ~ " - " ~ page.title | striptags %} + {% set title = title ~ " - " ~ page.title | striptags %} {% endif %} @@ -115,9 +115,9 @@ of your site: {% block extrahead %} {% set title = config.site_name %} {% if page and page.meta and page.meta.title %} - {% set title = config.site_name ~ " - " ~ page.meta.title %} + {% set title = title ~ " - " ~ page.meta.title %} {% elif page and page.title and not page.is_homepage %} - {% set title = config.site_name ~ " - " ~ page.title | striptags %} + {% set title = title ~ " - " ~ page.title | striptags %} {% endif %}