{{ with .Site.LanguageCode }} {{ end }} {{/* Title */}} {{ if .IsHome -}} {{ .Site.Title }} {{- else -}} {{ .Title | emojify }} · {{ .Site.Title | emojify }} {{- end }} {{/* Metadata */}} {{ with .Params.Description -}} {{- else -}} {{- end }} {{ with .Site.Params.keywords -}} {{- end }} {{ with .Site.Params.robots }} {{ end }} {{ with .Params.robots }} {{ end }} {{ range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} {{ end -}} {{/* Asset bundles */}} {{ $assets := newScratch }} {{ $cssMain := resources.Get "css/compiled/main.css" }} {{ $assets.Add "css" (slice $cssMain) }} {{ $cssCustom := resources.Get "css/custom.css" }} {{ if $cssCustom }} {{ $assets.Add "css" (slice $cssCustom) }} {{ end }} {{ $bundleCSS := $assets.Get "css" | resources.Concat "css/main.bundle.css" | resources.Minify | resources.Fingerprint "sha512" }} {{/* Icons */}} {{ if templates.Exists "partials/favicons.html" }} {{ partialCached "favicons.html" .Site }} {{ else }} {{ end }} {{/* Site Verification */}} {{ with .Site.Params.verification.google }} {{ end }} {{ with .Site.Params.verification.bing }} {{ end }} {{ with .Site.Params.verification.pinterest }} {{ end }} {{ with .Site.Params.verification.yandex }} {{ end }} {{/* Social */}} {{ template "_internal/opengraph.html" . }} {{ template "_internal/twitter_cards.html" . }} {{/* Generator */}} {{ if .Site.Params.attribution | default true }} {{ hugo.Generator }} {{ end }} {{/* Me */}} {{ with .Site.Author.name }}{{ end }} {{ with .Site.Author.links }} {{ range $links := . }} {{ range $name, $url := $links }}{{ end }} {{ end }} {{ end }} {{/* Analytics */}} {{ partialCached "analytics.html" . }} {{/* Extend head - eg. for custom analytics scripts, etc. */}} {{ if templates.Exists "partials/extend-head.html" }} {{ partialCached "extend-head.html" .Site }} {{ end }}