summaryrefslogtreecommitdiff
path: root/themes/itheme/layouts/_default/baseof.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/itheme/layouts/_default/baseof.html')
-rw-r--r--themes/itheme/layouts/_default/baseof.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/themes/itheme/layouts/_default/baseof.html b/themes/itheme/layouts/_default/baseof.html
new file mode 100644
index 0000000..fa816df
--- /dev/null
+++ b/themes/itheme/layouts/_default/baseof.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html class="js no-touch progressive-image no-reduced-motion progressive" lang="{{ .Site.Language.Lang }}">
+ <head>
+ {{ partial "head.html" . }}
+ </head>
+ <body class="{{ if .IsPage }} page-article {{ else }} page-landing {{ end }} {{ if eq .Page.Params.theme "dark" }} theme-dark {{ end }}">
+ <header>
+ {{ partial "header.html" . }}
+ </header>
+ {{ block "main" . }}
+ {{ end }}
+ {{ $isDark := eq .Page.Params.theme "dark"}}
+ {{ partial "footer.html" (dict "dark" $isDark) }}
+
+ </body>
+ <!-- algolia related script -->
+ {{ if site.Params.algolia.enabled }}
+ <script src="{{ "js/algoliasearch.umd.js" | relURL }}"></script>
+ <script src="{{ "js/autocomplete-js.js" | relURL }}"></script>
+ {{ end }}
+
+ <!-- custom js files -->
+ {{ range site.Params.js }}
+ <script src="{{ .url | relURL }}"></script>
+ {{ end }}
+</html>