{{- if hugo.IsProduction | or (eq site.Params.env "production") }} {{- else }} {{- end }} {{- /* Title */}} {{- $pageTitle := site.Title }} {{- if (and .Title (not .IsHome)) }} {{- $pageTitle = printf "%s | %s" .Title $pageTitle }} {{- end }} {{ $pageTitle }} {{- /* 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" }} {{- $extendedScss := (resources.Match "css/extended/*.scss") | resources.Concat "assets/css/extended.scss" | resources.ToCSS }} {{- /* bundle all required css */}} {{- /* Add extended css after theme style */ -}} {{- $stylesheet := (slice $core $extended $extendedScss) | 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") }} {{- if site.GoogleAnalytics }} {{- template "_internal/google_analytics.html" . }} {{- end -}} {{- if site.Params.useCustomAnalytics }} {{- partialCached "custom_analytics.html" . "custom_analytics.html" }} {{- end -}} {{- end -}} {{- /* https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started */}} {{- if .Params.cover.image }} {{- else }} {{- with site.Params.images -}} {{- end }} {{- end }} {{- with site.Params.socialAccounts.twitter }} {{- end }} {{- template "partials/templates/opengraph.html" (dict "page" . "pageTitle" $pageTitle) }} {{- template "partials/templates/schema_json.html" (dict "page" . "pageTitle" $pageTitle) }} {{- partial "extend_head.html" . }}