Skip to content

Commit

Permalink
Update from Shopify for theme sneakerlab/trunk
Browse files Browse the repository at this point in the history
Committed from shop: Sneaker Lab 2022
  • Loading branch information
shopify[bot] authored Oct 12, 2023
1 parent 67274d5 commit bddcf0e
Showing 1 changed file with 31 additions and 14 deletions.
45 changes: 31 additions & 14 deletions layout/theme.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -34,42 +34,57 @@
<script src="{{ 'global.js' | asset_url }}" defer="defer"></script>
{{ content_for_header }}



{% comment %}
{{ 'base.css' | asset_url | stylesheet_tag }}
{% endcomment %}

{{ "app.css" | asset_url | stylesheet_tag }}
{{ 'app.css' | asset_url | stylesheet_tag }}

{% if page_title == 'About' or request.page_type == '404' or page_title == 'Contact' or page_title == 'Become a stockist' %}
{% if page_title == 'About'
or request.page_type == '404'
or page_title == 'Contact'
or page_title == 'Become a stockist'
%}
{%- liquid
assign color_scheme = 'page-inverted'
%}
{% endif %}

{%- if settings.predictive_search_enabled -%}
<link rel="stylesheet" href="{{ 'component-predictive-search.css' | asset_url }}" media="print" onload="this.media='all'">
<link
rel="stylesheet"
href="{{ 'component-predictive-search.css' | asset_url }}"
media="print"
onload="this.media='all'"
>
{%- endif -%}

<script>document.documentElement.className = document.documentElement.className.replace('no-js', 'js');
if (Shopify.designMode) {
document.documentElement.classList.add('shopify-design-mode');
}
<script>
document.documentElement.className = document.documentElement.className.replace('no-js', 'js');
if (Shopify.designMode) {
document.documentElement.classList.add('shopify-design-mode');
}
</script>

{% render 'shogun-head' %}
</head>
{% render 'shogun-head' %}
</head>

<body class="flex flex-col min-h-screen font-raleway {% echo color_scheme %}">
<a class="sr-only skip-to-content-link button visually-hidden" href="#MainContent">
{{ "accessibility.skip_to_text" | t }}
{{ 'accessibility.skip_to_text' | t }}
</a>

{% render 'ticker' %}

{% section 'announcement-bar' %}
{% section 'test-header' %}

<main id="main-content" class="px-4 md:pt-12 xl:container xl:mx-auto lg:px-5" role="main" aria-label="Main Site Content">
<main
id="main-content"
class="px-4 md:pt-12 xl:container xl:mx-auto lg:px-5"
role="main"
aria-label="Main Site Content"
>
{{ content_for_layout }}
</main>

Expand Down Expand Up @@ -147,6 +162,7 @@
</script>

<script>
window.shopUrl = '{{ request.origin }}';
window.routes = {
cart_add_url: '{{ routes.cart_add_url }}',
Expand All @@ -172,10 +188,11 @@
pauseSlideshow: `{{ 'sections.slideshow.pause_slideshow' | t }}`,
playSlideshow: `{{ 'sections.slideshow.play_slideshow' | t }}`,
}
</script>

{%- if settings.predictive_search_enabled -%}
<script src="{{ 'predictive-search.js' | asset_url }}" defer="defer"></script>
{%- endif -%}
</body>
</body>
</html>

0 comments on commit bddcf0e

Please sign in to comment.