{{- 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.googlesiteVerificationTag }} {{- end }} {{- if site.Params.analytics.yandexsiteVerificationTag }} {{- end }} {{- if site.Params.analytics.bingsiteVerificationTag }} {{- end }} {{- /* Styles */}} {{- $theme_vars := (resources.Get "css/core/theme-vars.css") }} {{- $reset := (resources.Get "css/core/reset.css") }} {{- $media := (resources.Get "css/core/zmedia.css") }} {{- $common := (resources.Match "css/common/*.css") | resources.Concat "assets/css/common.css" }} {{- $commonHighlight := (resources.Get "css/common/highlight.scss") | resources.ToCSS }} {{- /* order is important */}} {{- $core := (slice $theme_vars $reset $common $commonHighlight $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 }} {{- /* Favicons */}} {{- /* RSS */}} {{ range .AlternativeOutputFormats -}} {{ end -}} {{- range .AllTranslations -}} {{ end -}} {{- /* Misc */}} {{- if hugo.IsProduction | or (eq site.Params.env "production") }} {{- template "_internal/google_analytics.html" . }} {{- end -}} {{- /* https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started */}} {{- if .Params.cover.image }} {{- else -}} {{- template "_internal/twitter_cards.html" . -}} {{- end -}} {{- template "partials/templates/opengraph.html" . }} {{- template "partials/templates/schema_json.html" . }} {{- partial "extend_head.html" . }}