Created
July 31, 2017 14:00
-
-
Save craigcooperxyz/a9c5ee2a6fea34f85304b122c1b9151b to your computer and use it in GitHub Desktop.
Better Shopify Titles
This file contains 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> | |
{% if template == 'index' %} | |
{% if page_title contains 'Welcome' %} | |
{{ shop.name }} – Welcome | |
{% else %} | |
{{ page_title }} | |
{% endif %} | |
{% elsif template == '404' %} | |
Page Not Found | |
{% elsif page_title contains shop.name %} | |
{{ page_title }} | |
{% else %} | |
{% if current_tags %} | |
{{ current_tags.first | capitalise | replace: '-', ' ' }} – | |
{% endif %} | |
{{ page_title }} – {{ shop.name }} | |
{% endif %} | |
</title> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment