{{ $title := .Title }} {{- if not .IsHome }} {{ $title = printf "%s | %s" .Title .Site.Title }} {{ end -}} {{ $title }} {{- with .Site.Params.author }} {{ end -}} {{ $options := (dict "outputStyle" "compressed" "enableSourceMap" (not hugo.IsProduction) "includePaths" (slice "sass")) }} {{- $style := resources.Get "sass/main.scss" | resources.ToCSS $options -}} {{ $zoom_css := resources.Get "zoomjs/zoom.css" | resources.Minify -}} {{ range .Site.Params.custom_css -}} {{ $custom_template := resources.Get . }} {{ if $custom_template }} {{ $custom_style := $custom_template | resources.ToCSS | resources.Minify }} {{ end }} {{- end -}} {{- range .Site.Params.custom_js -}} {{ $custom_template := resources.Get . }} {{ if $custom_template }} {{ $custom_js := $custom_template | resources.Minify | resources.Fingerprint }} {{ end }} {{ end -}} {{ range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} {{ end -}} {{ if .Site.Params.useFaviconGenerator }} {{ else }} {{ end }} {{- $header_img := .Param "header_img" -}} {{- if .IsHome -}} {{ $header_img = .Site.Params.img_home }} {{- else if eq .Kind "404" -}} {{ $header_img = .Site.Params.img_404 }} {{- end -}} {{- if $header_img -}} {{ .Scratch.Set "header_img" ( $header_img | relURL ) }} {{- end -}} {{- if and .IsPage (.Params.toc) }} {{ .Scratch.Set "toc" true }} {{ end -}} {{ partial "nav.html" . }} {{ partial "intro-header.html" . }} {{ block "main" . }}
{{ if eq .Site.Params.sidebar.enable false }}
{{ block "container" . }}{{ end }}
{{ else }}
{{ block "container" . }}{{ end }}
{{ end }}
{{ end }} {{ partial "footer.html" . }}