Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions layout/theme.liquid
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
<!doctype html>
<html class="js" lang="{{ request.locale.iso_code }}">
<head>
{% liquid
# Block templates via metaobject (strict match)
assign blocked = shop.metaobjects.access_control.global.blocked_templates.value

for type in blocked
if type == template.type
echo '<script>window.location.replace("/");</script>'
break
endif
endfor
%}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">
Expand Down Expand Up @@ -256,7 +267,6 @@
{{ 'base.css' | asset_url | stylesheet_tag }}
{{ 'custom-styles.css' | asset_url | stylesheet_tag }}


{%- unless settings.type_body_font.system? -%}
{% comment %}theme-check-disable AssetPreload{% endcomment %}
<link rel="preload" as="font" href="{{ settings.type_body_font | font_url }}" type="font/woff2" crossorigin>
Expand Down Expand Up @@ -287,10 +297,9 @@
document.documentElement.classList.add('shopify-design-mode');
}
</script>
<link rel="preload" href="{{ 'design-pack-styles.css' | asset_url }}" as="style">
{{ 'design-pack-styles.css' | asset_url | stylesheet_tag }}
</head>

<link rel="preload" href="{{ 'design-pack-styles.css' | asset_url }}" as="style">
{{ 'design-pack-styles.css' | asset_url | stylesheet_tag }}
</head>

<body class="gradient{% if settings.animations_hover_elements != 'none' %} animate--hover-{{ settings.animations_hover_elements }}{% endif %}">
<a class="skip-to-content-link button visually-hidden" href="#MainContent">
Expand Down Expand Up @@ -366,6 +375,5 @@
{% if template.suffix == 'members' %}
{% render 'for-hire-btn' %}
{% endif %}

</body>
</html>