Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Commit

Permalink
Twitter card descriptions #468
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmason committed Dec 16, 2015
1 parent 87b40e5 commit fe9a583
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snippets/social-meta-tags.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@
<meta name="twitter:card" content="summary">
{% if template contains 'product' %}
<meta name="twitter:title" content="{{ product.title }}">
<meta name="twitter:description" content="{{ product.description | strip_html | truncatewords: 140, '' | escape }}">
<meta name="twitter:description" content="{{ page_description | truncatewords: 140, '' | escape }}">
<meta name="twitter:image" content="https:{{ product.featured_image.src | img_url: 'medium' }}">
<meta name="twitter:image:width" content="240">
<meta name="twitter:image:height" content="240">
{% elsif template contains 'article' %}
<meta name="twitter:title" content="{{ article.title }}">
<meta name="twitter:description" content="{{ article.excerpt_or_content | strip_html | truncatewords: 140, '' | escape }}">
<meta name="twitter:description" content="{{ page_description | truncatewords: 140, '' | escape }}">
{% comment %}
Check if content contains an image to add to the card
- Source: http://blog.viralica.com/2013/09/twitter-product-cards-on-shopify/
Expand Down

0 comments on commit fe9a583

Please sign in to comment.