Twitter Image and Title (#330)

Merge pull request 330
This commit is contained in:
Scott Watermasysk 2019-02-16 10:40:06 -05:00 committed by jekyllbot
parent 45c8eb7718
commit 7898489736
1 changed files with 2 additions and 0 deletions

View File

@ -54,10 +54,12 @@
{% if site.twitter %}
{% if seo_tag.image %}
<meta name="twitter:card" content="{{ page.twitter.card | default: site.twitter.card | default: "summary_large_image" }}" />
<meta property="twitter:image" content="{{ seo_tag.image.path }}" />
{% else %}
<meta name="twitter:card" content="summary" />
{% endif %}
<meta property="twitter:title" content="{{ seo_tag.page_title }}" />
<meta name="twitter:site" content="@{{ site.twitter.username | replace:"@","" }}" />
{% if seo_tag.author.twitter %}