Skip to content

Instantly share code, notes, and snippets.

View MatthewKennedy's full-sized avatar

Matthew Kennedy MatthewKennedy

View GitHub Profile
@MatthewKennedy
MatthewKennedy / Meta-Tagger.liquid
Created February 24, 2012 02:09 — forked from resistorsoftware/Google Shopping Snippet
Enhanced Meta Tagger Snippet With Blog and Article
{% assign maxmeta = 155 %}
<link rel="canonical" href="{{ canonical_url }}" />
{% if template contains 'product' %}
{% assign mf = product.metafields.meta_data %}
{% unless mf == empty %}
{% for mf in product.metafields.meta_data' %}
{% capture key %}{{ mf | first }}{% endcapture %}
{% if key == 'title' %}