{% comment %}
This is for widgets that share content on Facebook.
See the Facebook Linter: http://developers.facebook.com/tools/debug
{% endcomment %}

{% if template contains 'product' %}
  <meta property="og:type" content="product" />
  <meta property="og:title" content="{{ product.title | strip_html | escape }}" />
  {% for image in product.images %}
  <meta property="og:image" content="http:{{ image.src | product_img_url: 'grande' }}" />
  <meta property="og:image:secure_url" content="https:{{ image.src | product_img_url: 'grande' }}" />
  {% endfor %}
  <meta property="og:price:amount" content="{{ product.price | money_without_currency }}" />
  <meta property="og:price:currency" content="{{ shop.currency }}" />
{% elsif template contains 'article' %}
  <meta property="og:type" content="article" />
  <meta property="og:title" content="{{ article.title | strip_html | escape }}" />  
  <meta property="og:image" content="http:{{ article.image | img_url: '1200x1200' }}">
  <meta property="og:image:secure_url" content="https:{{ article.image | img_url: '1200x1200' }}">
{% else %}
  <meta property="og:type" content="website" />
  <meta property="og:title" content="{{ page_title | escape }}" />

  <meta property="og:image" content="http:{{ 'logo.png' | asset_url }}" />
  <meta property="og:image:secure_url" content="https:{{ 'logo.png' | asset_url }}" />
{% endif %}

{% if page_description %}
<meta property="og:description" content="{{ page_description | escape }}" />
{% endif %}
<meta property="og:url" content="{{ canonical_url }}" />
<meta property="og:site_name" content="{{ shop.name }}" />

<!--TWITTER META-->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="{{ page_title }}">
<meta name="twitter:description" content="{{ page_description | default: shop.description | default: shop.name }}">