Skip to content

Commit

Permalink
Twitter Image and Title (jekyll#330)
Browse files Browse the repository at this point in the history
Merge pull request 330
  • Loading branch information
scottwater authored and jekyllbot committed Feb 16, 2019
1 parent 45c8eb7 commit 7898489
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 7898489

Please sign in to comment.