{{- $public_cdn := cond .Site.IsServer "" .Site.Params.publicCDN -}} {{- $title := .Site.Title -}} {{- $image := .Site.Params.logo.url | absURL -}} {{- if .Site.Params.featured_image -}} {{- $image = (.Resources.GetMatch .Site.Params.featured_image).Permalink -}} {{- end -}} {{- $description := .Site.Params.description -}} {{- if .Summary -}} {{- $description = .Summary | plainify -}} {{- end -}} {{- $title -}} {{- $sassTemplate := resources.Get "sass/main.scss" -}} {{- $styles := $sassTemplate | resources.ExecuteAsTemplate "main.css" . | resources.ToCSS | postCSS (dict "config" "postcss.config.js") -}} {{- if .Site.IsServer -}} {{- else -}} {{- $styles := $styles | fingerprint | resources.PostProcess -}} {{- end -}} {{- if .IsPage -}} {{- if not .Date.IsZero -}} {{- end -}} {{- if not .Lastmod.IsZero -}} {{- end -}} {{- else -}} {{- if not .Site.LastChange.IsZero -}} {{- end -}} {{- end -}} {{- $favicon_icon := resources.Get "icon.png" -}} {{- $favicon_icon = $favicon_icon.Resize "48x48 ico icon" -}} {{- $favicon_icon = slice $favicon_icon | resources.Concat "favicon.ico" -}} {{- $favicon_icon = print $public_cdn $favicon_icon.RelPermalink -}} {{- $manifest := resources.Get "manifest.json" | resources.ExecuteAsTemplate (print ("/" | relLangURL) "manifest.json") . -}} {{- $icon := print $public_cdn (resources.Get "icon.png").RelPermalink -}} {{- partial "site-schema.html" . -}} {{- partial "custom/head" . -}}