{{- $ampcats := slice "category" "news" "author" "tag" }} {{- if in $ampcats .Data.Singular -}} {{- $.Scratch.Set "amp" true -}} {{- end -}} {{- with .CurrentSection -}} {{- with .Param "amp" -}} {{- $.Scratch.Set "amp" . -}} {{- end -}} {{- end -}} {{- if eq .Site.Params.meta_csp "true" -}} {{- with .Site.Params.csp}} {{- end -}} {{- end -}} {{- block "title" .}}{{ if .IsHome }}{{.Site.Params.subtitle}}{{ else }}{{ if .Title }}{{ .Title }} | {{ end }}{{ .Site.Title }}{{end}}{{- end}} {{if .Params.noindex}}{{end}} {{- if eq (.Scratch.Get "amp") true -}} {{- partial "head-amp" . -}} {{- else -}} {{- $stylesheet := .Site.Data.webpack.main -}} {{- with $stylesheet.css -}} {{- end -}} {{- with .Params.css -}} {{- end -}} {{- end -}} {{- block "schema" . }}{{ partial "schema" .}}{{- end}} {{- block "bodytag" . }}{{- end }} {{- if ne (.Scratch.Get "amp") true -}}{{partial "sidenav" . }}{{- else -}}{{partial "amp-sidenav" . }}{{- end -}} {{- partial "ote" . -}} {{ if ne .Params.noheader true -}} {{ if ne (.Scratch.Get "amp") true -}} {{- partial "header" . -}} {{- else -}} {{- partial "header-amp" . -}} {{- end -}} {{- end -}} {{- block "fixedheaderwrap" . }}
{{- end }}
{{- block "herotag" . }}{{- end }} {{- block "main" . }}{{- end }}
{{- block "footer" .}} {{ if (eq .Params.footer "small") }} {{- partial "footer-small.html" . -}} {{else}} {{- partial "footer.html" . -}} {{end}} {{- end}}
Top
{{- block "fixedheaderwrapend" . }}
{{- end }}
{{- if ne (.Scratch.Get "amp") true -}} {{ $script := .Site.Data.webpack.main }} {{ with $script.js }} {{- end -}} {{- with .FirstSection -}} {{- if eq (.Param "js") "help" -}} {{ $script := .Site.Data.webpack.help }} {{ with $script.js }} {{- end -}} {{- end -}} {{- end -}} {{- end -}} {{- if or (eq .Site.Params.ga true) (eq .Site.Params.ga "true") -}} {{- if .Site.Params.ga_code -}} {{- if eq (.Scratch.Get "amp") true -}} {{- else -}} {{- end -}} {{- end -}} {{- end -}} {{- block "bodyclose" . }} {{- end }}