{{- if hugo.IsProduction | or (eq .Site.Params.env "production") }}
{{- else }}
{{- end -}}
{{ if .IsHome }}{{else}}{{ if .Title }}{{ .Title }} | {{ end }}{{end}}{{ .Site.Title }}
{{- if .Site.Params.analytics.google.SiteVerificationTag }}
{{- end}} {{- if .Site.Params.analytics.yandex.SiteVerificationTag }}
{{- end}} {{- if .Site.Params.analytics.bing.SiteVerificationTag }}
{{- end}} {{- $theme_vars := (resources.Get "css/core/theme-vars.css") }} {{- $reset := (resources.Get "css/core/reset.css") }} {{- $media := (resources.Get "css/core/zmedia.css") }} {{- $hljs := (resources.Get "css/hljs/an-old-hope.min.css") }} {{- $common := (resources.Match "css/common/*.css") | resources.Concat "assets/css/common.css" }} {{- /* order is important */}} {{- $core := (slice $theme_vars $reset $common $hljs $media) | resources.Concat "assets/css/core.css" }} {{- $extended := (resources.Match "css/extended/*.css") | resources.Concat "assets/css/extended.css" }} {{- /* bundle all required css */}} {{- /* Add extended css after theme style */ -}} {{- $stylesheet := (slice $core $extended) | resources.Concat "assets/css/stylesheet.css" | minify }} {{- if not .Site.Params.assets.disableFingerprinting }} {{- $stylesheet := $stylesheet | fingerprint -}}
{{- else}}
{{- end}} {{- if (eq .Layout `search`) -}}
{{- $fastsearch := resources.Get "js/fastsearch.js" | resources.ExecuteAsTemplate "js/fastsearch.js" .Site.Params.fuseOpts }} {{- $fusejs := resources.Get "js/fuse.js" }} {{- if not .Site.Params.assets.disableFingerprinting }} {{- $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" | minify | fingerprint }} {{- else}} {{ $search := (slice $fusejs $fastsearch ) | resources.Concat "assets/js/search.js" | minify }} {{- end}} {{- end -}}
{{- hugo.Generator }} {{- range .AlternativeOutputFormats -}}
{{ end -}} {{- range .AllTranslations -}}
{{ end }} {{- partial "extend_head.html" . -}} {{- if hugo.IsProduction | or (eq .Site.Params.env "production") }} {{- template "_internal/google_analytics_async.html" . }} {{- template "_internal/google_news.html" . }} {{- template "partials/templates/opengraph.html" . }} {{- template "partials/templates/twitter_cards.html" . }} {{- template "partials/templates/schema_json.html" . }} {{- end }}