<!DOCTYPE html>
<html
  lang="{{ site.LanguageCode | default `en-US` }}"
  itemscope
  itemtype="http://schema.org/WebPage">
  <head>
    <!-- head (don't cache it) -->
    {{ partial "essentials/head.html" . }}

		
    <!-- cache partial only in production -->
    {{ if hugo.IsProduction }}
      {{ partialCached "essentials/style.html" . }}
    {{ else }}
      {{ partial "essentials/style.html" . }}
    {{ end }}
  </head>

  <body>
    <!-- cache partial only in production -->
    {{ if hugo.IsProduction }}
      {{ partialCached "preloader.html" . }}
      {{ partialCached "gtm-noscript.html" . }}
    {{ else }}
      {{ partial "preloader.html" . }}
    {{ end }}


    <!-- header (don't cache it) -->
    {{ partial "essentials/header.html" . }}


    <main>
      {{ block "main" . }}{{ end }}
    </main>

    <!-- cache partial only in production -->
    {{ if hugo.IsProduction }}
      {{ partialCached "essentials/footer.html" . }}
      {{ partialCached "essentials/script.html" . }}
    {{ else }}
      {{ partial "essentials/footer.html" . }}
      {{ partial "essentials/script.html" . }}
    {{ end }}
  </body>
</html>
