From 6e47fe8a6ee036836345cb3b79929694d9f5e86c Mon Sep 17 00:00:00 2001 From: squidfunk Date: Thu, 30 Jul 2020 20:11:06 +0200 Subject: [PATCH] Fixed open graph and Twitter cards documentation --- docs/reference/meta-tags.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 %}