{{- if hugo.IsProduction | or (eq .Site.Params.env "production") }} {{- else }} {{- end -}} {{ if .IsHome }}{{else}}{{ if .Title }}{{ .Title }} | {{ end }}{{end}}{{ .Site.Title }} {{- $canonical := cond (.IsHome) .Site.Params.canonical .Params.canonical }} {{- range $canonical }} {{- end }} {{- if .Site.Params.analytics.google.SiteVerificationTag }} {{- end}} {{- $common := (resources.Match "css/*.css") | resources.Concat "assets/css/common.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 $common $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" }} {{- $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 .Translations -}} {{ 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 }}