diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index e534abd..225b6f7 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`). diff --git a/lib/template.html b/lib/template.html index 8bc25d5..f34aaa8 100755 --- a/lib/template.html +++ b/lib/template.html @@ -5,7 +5,7 @@ <meta name="generator" content="Jekyll v{{ jekyll.version }}" /> -{% if seo_tag.page_title %} +{% if seo_tag.page_title and seo_tag.title? %} <meta property="og:title" content="{{ seo_tag.page_title }}" /> {% endif %} @@ -61,7 +61,7 @@ <meta name="twitter:card" content="summary" /> {% endif %} -{% if seo_tag.page_title %} +{% if seo_tag.page_title and seo_tag.title? %} <meta property="twitter:title" content="{{ seo_tag.page_title }}" /> {% endif %}