mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-08 14:13:35 +00:00
49 lines
1.6 KiB
HTML
49 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
{{- $language_code := site.LanguageCode | default "en-us" -}}
|
|
<html lang="{{$language_code}}" {{ if in site.Data.i18n.rtl.rtl $language_code }}dir="rtl"{{end}}>
|
|
|
|
{{ partial "site_head" . }}
|
|
|
|
{{ $show_navbar := site.Params.main_menu.enable | default true }}
|
|
{{- $highlight_active_link := site.Params.main_menu.highlight_active_link | default true -}}
|
|
<body id="top" data-spy="scroll" {{ if $show_navbar }}data-offset="70"{{end}} data-target="{{ if or .IsHome (eq .Type "widget_page") | and $highlight_active_link }}#navbar-main{{else}}#TableOfContents{{end}}" class="page-wrapper {{ if not (.Scratch.Get "light") }}dark{{end}} {{ if not $show_navbar }}no-navbar{{end}}">
|
|
|
|
{{/* Load day/night theme. */}}
|
|
{{/* Initialise default theme. */}}
|
|
{{ if site.Params.day_night }}
|
|
<script>window.wcDarkLightEnabled = true;</script>
|
|
{{ end }}
|
|
{{ if eq (.Scratch.Get "light") true }}
|
|
<script>const isSiteThemeDark = false;</script>
|
|
{{ else }}
|
|
<script>const isSiteThemeDark = true;</script>
|
|
{{ end }}
|
|
{{ $load_theme := resources.Get "js/load-theme.js" }}
|
|
<script src="{{ $load_theme.RelPermalink }}"></script>
|
|
|
|
{{ partial "search" . }}
|
|
|
|
<div class="page-header">
|
|
{{ partial "navbar" . }}
|
|
</div>
|
|
|
|
<div class="page-body">
|
|
{{ block "main" . }}{{ end }}
|
|
</div>
|
|
|
|
<div class="page-footer">
|
|
{{/* Docs and Updates layouts include the site footer in a different location. */}}
|
|
{{ if not (in (slice "book" "docs" "updates") .Type) }}
|
|
<div class="container">
|
|
{{ partial "site_footer" . }}
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
|
|
{{ partial "citation" . }}
|
|
|
|
{{ partial "site_js" . }}
|
|
|
|
</body>
|
|
</html>
|