From 1008e7c76a27a59a392d1f0983746765f09883ca Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Thu, 21 May 2020 20:33:23 +0200 Subject: [PATCH 1/2] Prevent other titles usages when title is disabled --- lib/template.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/template.html b/lib/template.html index d7aea1b..c92dfaa 100755 --- a/lib/template.html +++ b/lib/template.html @@ -5,7 +5,7 @@ -{% if seo_tag.page_title %} +{% if seo_tag.page_title and seo_tag.title? %} {% endif %} @@ -59,7 +59,7 @@ {% endif %} -{% if seo_tag.page_title %} +{% if seo_tag.page_title and seo_tag.title? %} {% endif %} From f983d135f9daa73fae5c0a3b32a186c33e2fa496 Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Thu, 21 May 2020 20:39:02 +0200 Subject: [PATCH 2/2] Document proposal --- docs/advanced-usage.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 985c494..27dd169 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -12,6 +12,8 @@ If for some reason, you don't want the plugin to output `` tags on each p ``` <!-- {% endraw %} --> +This will remove output for `<title>`, `<meta property="og:title"/>` and `<meta property="twitter:title"/>`; you can define each of them on your side if needed. + ### Author information Author information is used to propagate the `creator` field of Twitter summary cards. This should be an author-specific, not site-wide Twitter handle (the site-wide username be stored as `site.twitter.username`).