Skip to content
This repository was archived by the owner on Aug 30, 2018. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions snippets/social-meta-tags.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@
- https://dev.twitter.com/docs/cards/validation/validator

More information:
- https://dev.twitter.com/docs/cards/types/product-card
- https://dev.twitter.com/docs/cards/types/summary-card
- https://dev.twitter.com/cards/types/summary
{% endcomment %}

{% comment %}
Expand All @@ -66,8 +65,8 @@
{% if settings.twittercard_handle != blank %}
<meta name="twitter:site" content="{{ settings.twittercard_handle }}">
{% endif %}
<meta name="twitter:card" content="summary">
{% if template contains 'product' %}
<meta name="twitter:card" content="product">
<meta name="twitter:title" content="{{ product.title }}">
<meta name="twitter:description" content="{{ product.description | strip_html | truncatewords: 140, '' | escape }}">
<meta name="twitter:image" content="https:{{ product.featured_image.src | img_url: 'medium' }}">
Expand All @@ -84,7 +83,6 @@
<meta name="twitter:data2" content="In stock">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed I think. All Label and Data properties will be ignored by Twitter.

{% endif %}
{% elsif template contains 'article' %}
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="{{ article.title }}">
<meta name="twitter:description" content="{{ article.excerpt_or_content | strip_html | truncatewords: 140, '' | escape }}">
{% comment %}
Expand Down