Created
August 26, 2020 06:35
-
-
Save jimmijazz/042ba5f206ef5c93853eab7641dbc599 to your computer and use it in GitHub Desktop.
[Shopify] Sample title tag generation with tag filtering
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<title> | |
{{ page_title }}{% if current_tags %}{% assign current_tags_joined = current_tags | join: ', ' %} – {{ 'general.meta.tags' | t: tags: current_tags_joined }}{% endif %}{% if current_page != 1 %} – {{ 'general.meta.page' | t: page: current_page }}{% endif %}{% unless page_title contains shop.name %} – {{ shop.name }}{% endunless %} | |
</title> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment