Skip to content

Commit 4d4f20b

Browse files
authored
Update theme header
cncf/cncf.io#647 Signed-off-by: James Hunt <[email protected]>
1 parent aa314d9 commit 4d4f20b

File tree

1 file changed

+38
-37
lines changed

1 file changed

+38
-37
lines changed

layout/theme.liquid

+38-37
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,25 @@
66
<html class="no-js" lang="{{ request.locale.iso_code }}">
77
<head>
88
{{ locksmith_initializations }}
9-
9+
<meta charset="utf-8">
10+
<meta name="viewport" content="width=device-width,initial-scale=1">
11+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
12+
13+
<link rel="preconnect" href="https://cdn.shopify.com" crossorigin>
14+
{%- unless settings.type_header_font.system? and settings.type_body_font.system? -%}
15+
<link rel="preconnect" href="https://fonts.shopifycdn.com" crossorigin>
16+
{%- endunless -%}
17+
18+
<title>
19+
{{ page_title }}
20+
{%- if current_tags %}
21+
&ndash; tagged "{{ current_tags | join: ', ' }}"{% endif -%}
22+
{%- if current_page != 1 %}
23+
&ndash; Page {{ current_page }}{% endif -%}
24+
{%- unless page_title contains shop.name %}
25+
&ndash; {{ shop.name }}{% endunless -%}
26+
</title>
27+
1028
<script src="https://cmp.osano.com/16A0DbT9yDNIaQkvZ/c3494b1e-ff3a-436f-978d-842e9a0bed27/osano.js"></script>
1129

1230
<!-- Google Tag Manager -->
@@ -16,7 +34,6 @@
1634
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
1735
})(window,document,'script','dataLayer','GTM-P4D6Z8Q');</script>
1836
<!-- End Google Tag Manager -->
19-
2037
<script src='{{ 'product_restore_email.js' | asset_url }}' defer='defer' ></script>
2138
<script id='em_product_variants' type='application/json'>
2239
{{ product.variants | json }}
@@ -27,41 +44,9 @@
2744
<script id='em_product_metafields' type='application/json'>
2845
{{ shop.metafields.email-sealapps-app.effective-time | json }}
2946
</script>
30-
<meta charset="utf-8">
31-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
32-
<meta name="viewport" content="width=device-width,initial-scale=1">
33-
<meta name="theme-color" content="">
34-
<link rel="canonical" href="{{ canonical_url }}">
35-
<link rel="preconnect" href="https://cdn.shopify.com" crossorigin>
36-
37-
{%- if settings.favicon != blank -%}
38-
<link rel="icon" type="image/png" href="{{ settings.favicon | image_url: width: 32, height: 32 }}">
39-
{%- endif -%}
40-
41-
{%- unless settings.type_header_font.system? and settings.type_body_font.system? -%}
42-
<link rel="preconnect" href="https://fonts.shopifycdn.com" crossorigin>
43-
{%- endunless -%}
44-
45-
<title>
46-
{{ page_title }}
47-
{%- if current_tags %}
48-
&ndash; tagged "{{ current_tags | join: ', ' }}"{% endif -%}
49-
{%- if current_page != 1 %}
50-
&ndash; Page {{ current_page }}{% endif -%}
51-
{%- unless page_title contains shop.name %}
52-
&ndash; {{ shop.name }}{% endunless -%}
53-
</title>
54-
55-
{% if page_description %}
56-
{%- comment %}<locksmith:74af>{% endcomment -%}
57-
{%- capture var %}{% render 'locksmith-variables', variable: 'transparent', hiding_scope: 'resource' %}{% endcapture %}{% if var == 'true' %}<meta name="description" content="{{ page_description | escape }}">{% endif -%}
58-
{%- comment %}original: <meta name="description" content="{{ page_description | escape }}">{%- endcomment %}
59-
{%- comment %}</locksmith:74af>{% endcomment -%}
60-
{% endif %}
61-
62-
{% render 'meta-tags' %}
63-
47+
6448
<script src="{{ 'global.js' | asset_url }}" defer="defer"></script>
49+
6550
{{ content_for_header }}
6651

6752
{%- liquid
@@ -373,7 +358,23 @@
373358
document.documentElement.classList.add('shopify-design-mode');
374359
}
375360
</script>
376-
{{ 'zify-sizechart.css' | asset_url | stylesheet_tag }}
361+
362+
{{ 'zify-sizechart.css' | asset_url | stylesheet_tag }}
363+
364+
<link rel="canonical" href="{{ canonical_url }}">
365+
366+
{%- if settings.favicon != blank -%}
367+
<link rel="icon" type="image/png" href="{{ settings.favicon | image_url: width: 32, height: 32 }}">
368+
{%- endif -%}
369+
370+
{% if page_description %}
371+
{%- comment %}<locksmith:74af>{% endcomment -%}
372+
{%- capture var %}{% render 'locksmith-variables', variable: 'transparent', hiding_scope: 'resource' %}{% endcapture %}{% if var == 'true' %}<meta name="description" content="{{ page_description | escape }}">{% endif -%}
373+
{%- comment %}original: <meta name="description" content="{{ page_description | escape }}">{%- endcomment %}
374+
{%- comment %}</locksmith:74af>{% endcomment -%}
375+
{% endif %}
376+
377+
{% render 'meta-tags' %}
377378
</head>
378379

379380
<body class="gradient">

0 commit comments

Comments
 (0)