Skip to content

Commit

Permalink
Improve Open graph metadata for WhatsApp (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
aschrijver committed Oct 30, 2018
1 parent 66cd8d7 commit 6b45a91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _includes/seo.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,16 @@
<meta property="og:site_name" content="{{ site.title }}">
<meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
<meta property="og:url" content="{{ canonical_url }}">
<meta property="og:type" content="website" />

{% if page.excerpt %}
<meta property="og:description" content="{{ seo_description }}">
{% endif %}

{% if page_large_image %}
<meta property="og:image" content="{{ page_large_image }}">
<meta property="og:image:secure_url" itemprop="image" content="{{ page_large_image }}">
{% elsif page_teaser_image %}
<meta property="og:image" content="{{ page_teaser_image }}">
<meta property="og:image:secure_url" itemprop="image" content="{{ page_teaser_image }}">
{% endif %}

{% if site.twitter.username %}
Expand Down

0 comments on commit 6b45a91

Please sign in to comment.