Prevent other titles usages when title is disabled

This commit is contained in:
Johan Cwiklinski 2020-05-21 20:33:23 +02:00 committed by GitHub
parent 6135021410
commit 1008e7c76a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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 %}
@ -59,7 +59,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 %}