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

Commit

Permalink
Merge pull request #491 from paulmason/master
Browse files Browse the repository at this point in the history
Issue #468 - Twitter card descriptions
  • Loading branch information
cshold committed Dec 16, 2015
2 parents 87b40e5 + fe9a583 commit 773eaee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snippets/social-meta-tags.liquid
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 773eaee

Please sign in to comment.