{{ with .Site.Language.Params.htmlCode | default .Site.LanguageCode }} {{ end }} {{/* Title */}} {{ if .IsHome -}} {{ .Site.Title | emojify }} {{- else -}} {{ .Title | emojify }} · {{ .Site.Title | emojify }} {{- end }} {{/* Metadata */}} {{ with (.Params.Summary | default .Params.Description) | default .Site.Params.description -}} {{- end }} {{ with .Params.Tags | default .Site.Params.keywords -}} {{- end }} {{ with .Site.Params.robots }} {{ end }} {{ with .Params.robots }} {{ end }} {{ range .AlternativeOutputFormats -}} {{ printf ` ` .Rel .MediaType.Type .RelPermalink ($.Site.Title | emojify) | safeHTML }} {{ end -}} {{/* Asset bundles */}} {{ $assets := newScratch }} {{ $cssScheme := resources.Get (printf "css/schemes/%s.css" (.Site.Params.colorScheme | default "blowfish")) }} {{ if not $cssScheme }} {{ $cssScheme = resources.Get "css/schemes/blowfish.css" }} {{ end }} {{ $assets.Add "css" (slice $cssScheme) }} {{ $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" }} {{ $jsAppearance := resources.Get "js/appearance.js" }} {{ $jsAppearance = $jsAppearance | resources.ExecuteAsTemplate "js/appearance.js" . | resources.Minify | resources.Fingerprint "sha512" }} {{ if .Site.Params.enableSearch | default false }} {{ $jsFuse := resources.Get "lib/fuse/fuse.min.js" }} {{ $jsSearch := resources.Get "js/search.js" }} {{ $assets.Add "js" (slice $jsFuse $jsSearch) }} {{ end }} {{ if .Site.Params.enableCodeCopy | default false }} {{ $jsCode := resources.Get "js/code.js" }} {{ $assets.Add "js" (slice $jsCode) }} {{ end }} {{ if .Site.Params.rtl | default false }} {{ $jsRTL := resources.Get "js/rtl.js" }} {{ $assets.Add "js" (slice $jsRTL) }} {{ end }} {{ $jsMobileMenu := resources.Get "js/mobilemenu.js" }} {{ $assets.Add "js" (slice $jsMobileMenu) }} {{ if $assets.Get "js" }} {{ $bundleJS := $assets.Get "js" | resources.Concat "js/main.bundle.js" | resources.Minify | resources.Fingerprint "sha512" }} {{ end }} {{ if not .Site.Params.disableImageZoom | default true }} {{ $zoomJS := resources.Get "lib/zoom/zoom.min.js" | resources.Fingerprint "sha512" }} {{ end }} {{/* 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" . }} {{/* Schema */}} {{ partial "schema.html" . }} {{/* Me */}} {{ with .Site.Params.Author.name }} {{ end }} {{ with .Site.Params.Author.links }} {{ range $links := . }} {{ range $name, $url := $links }} {{ end }} {{ end }} {{ end }} {{/* Vendor */}} {{ partial "vendor.html" . }} {{/* Analytics */}} {{ partial "analytics/main.html" .Site }} {{/* Extend head - eg. for custom analytics scripts, etc. */}} {{ if templates.Exists "partials/extend-head.html" }} {{ partialCached "extend-head.html" .Site }} {{ end }} {{/* Firebase */}} {{ with $.Site.Params.firebase }} {{ if isset $.Site.Params "firebase" }} {{ end }} {{ end }}