Add share page title

This commit is contained in:
Jeremy Thomas 2018-01-18 17:48:45 +00:00
parent 569abf0a71
commit b2d630e9c1

View File

@ -38,6 +38,9 @@
{% if page.share_title %}
<meta property="og:title" content="{{ page.share_title }}">
<meta name="twitter:title" content="{{ page.share_title }}">
{% elsif page.title %}
<meta property="og:title" content="{{ page.title | replace: '&nbsp;', ' ' }}">
<meta name="twitter:title" content="{{ page.title | replace: '&nbsp;', ' ' }}">
{% else %}
<meta property="og:title" content="{{ site.title }}">
<meta name="twitter:title" content="{{ site.title }}">