Skip to content

Commit

Permalink
fix twitter card image
Browse files Browse the repository at this point in the history
  • Loading branch information
josecastillo committed Apr 27, 2019
1 parent 71fa118 commit 7c123ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
<!-- begin meta nonsense -->
<meta itemprop="name" content="{% if page.title %}{{page.title}} - {{site.title}}{% else %}{{site.title}}{% endif %}">
<meta itemprop="description" content="{% if page.description %}{{page.description}}{% else %}{{site.description}}{% endif %}">
<meta itemprop="image" content="{% if page.photo %}{{page.photo | absolute_url}}{% else %}{{site.image | absolute_url}}{% endif %}">
<meta itemprop="image" content="{% if page.image %}{{page.image | absolute_url}}{% else if page.photo %}{{page.photo | absolute_url}}{% else %}{{site.image | absolute_url}}{% endif %}">

<!-- Facebook -->
<meta property="og:type" content="website"/>
<meta property="og:title" content="{% if page.title %}{{page.title}} - {{site.title}}{% else %}{{site.title}}{% endif %}"/>
<meta property="og:description" content="{% if page.description %}{{page.description}}{% else %}{{site.description}}{% endif %}"/>
<meta property="og:image" content="{% if page.image %}{{page.image | absolute_url}}{% else %}{{site.image | absolute_url}}{% endif %}"/>
<meta property="og:image" content="{% if page.image %}{{page.image | absolute_url}}{% else if page.photo %}{{page.photo | absolute_url}}{% else %}{{site.image | absolute_url}}{% endif %}"/>
<meta property="og:image:width" content="{% if page.image_width %}{{page.image_width}}{% else %}880{% endif %}"/>
<meta property="og:image:height" content="{% if page.image_height %}{{page.image_height}}{% else %}1100{% endif %}"/>
<meta property="og:url" content="{{page.url | absolute_url}}"/>
Expand All @@ -33,7 +33,7 @@
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="{% if page.title %}{{page.title}} - {{site.title}}{% else %}{{site.title}}{% endif %}">
<meta name="twitter:description" content="{% if page.description %}{{page.description}}{% else %}{{site.description}}{% endif %}">
<meta name="twitter:image" content="{{site.image | absolute_url}}">
<meta name="twitter:image" content="{% if page.image %}{{page.image | absolute_url}}{% else if page.photo %}{{page.photo | absolute_url}}{% else %}{{site.image | absolute_url}}{% endif %}">
<meta name="twitter:url" content="{{page.url | absolute_url}}">
<!-- end meta nonsense -->

Expand Down

0 comments on commit 7c123ce

Please sign in to comment.