{{- if hugo.IsProduction | or (eq .Site.Params.env "production") }} {{- else }} {{- end }} {{- /* Title */}} {{ if .IsHome }}{{ else }}{{ if .Title }}{{ .Title }} | {{ end }}{{ end }}{{ .Site.Title }} {{- /* Meta */}} {{- if .IsHome }} {{ with .Site.Params.keywords -}}{{ end }} {{- else }} {{- end }} {{- if .Site.Params.analytics.google.SiteVerificationTag }} {{- end }} {{- if .Site.Params.analytics.yandex.SiteVerificationTag }} {{- end }} {{- if .Site.Params.analytics.bing.SiteVerificationTag }} {{- end }} {{- partial "head_styles.html" . }} {{- with .Site.Params.profileMode }} {{- if and .enabled .imageUrl $.IsHome }} {{- end }} {{- end }} {{- with .Site.Params.label.icon }} {{- end }} {{- /* Search */}} {{- if (eq .Layout `search`) -}} {{- $fastsearch := resources.Get "js/fastsearch.js" | js.Build (dict "params" (dict "fuseOpts" .Site.Params.fuseOpts)) }} {{- $fusejs := resources.Get "js/fuse.basic.min.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 -}} {{- /* Highlight.js */}} {{- $isHLJSdisabled := (.Site.Params.assets.disableHLJS | default .Params.disableHLJS ) }} {{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (not $isHLJSdisabled)) }} {{- if not .Site.Params.assets.disableFingerprinting }} {{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | fingerprint }} {{- else }} {{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify }} {{- end }} {{- end }} {{- /* Favicons */}} {{- /* RSS */}} {{ range .AlternativeOutputFormats -}} {{ end -}} {{- range .AllTranslations -}} {{ end -}} {{- partial "extend_head.html" . -}} {{- /* Misc */}} {{- if hugo.IsProduction | or (eq .Site.Params.env "production") }} {{- template "_internal/google_analytics.html" . }} {{- template "partials/templates/opengraph.html" . }} {{- template "partials/templates/twitter_cards.html" . }} {{- template "partials/templates/schema_json.html" . }} {{- end -}}