{% assign template_base = template | split: '.' | first %}
{% assign og_title = page_title %}
{% assign og_description = page_description | default: shop.description | default: shop.name %}
{% if settings.logo_use_image %}
{% capture twitter_image_tag %}{% endcapture %}
{% endif %}
{% comment %}
Template specific overides
{% endcomment %}
{% if template_base == 'product' %}
{% assign og_title = product.title | strip_html %}
{% capture twitter_image_tag %}{% endcapture %}
{% elsif template_base == 'article' %}
{% assign og_title = article.title | strip_html %}
{% assign og_description = article.excerpt_or_content | strip_html %}
{% if article.image %}
{% capture twitter_image_tag %}{% endcapture %}
{% endif %}
{% elsif template_base == 'password' %}
{% assign og_title = shop.name %}
{% assign og_description = shop.description | default: shop.name %}
{% endif %}
{{ twitter_image_tag }}