{{ .Hugo.Generator }} {{ with .Site.Params.name }}{{ end }} {{ with .Site.Params.role }}{{ end }} {{/* Default to enabling highlighting, but allow the user to override it in .Params or .Site.Params. Use $.Scratch to store "highlight_enabled", so that we can read it again in footer.html. */}} {{ $.Scratch.Set "highlight_enabled" true }} {{ if isset .Params "highlight" }} {{ $.Scratch.Set "highlight_enabled" .Params.highlight }} {{ else if isset .Site.Params "highlight" }} {{ $.Scratch.Set "highlight_enabled" .Site.Params.highlight }} {{ end }} {{ if $.Scratch.Get "highlight_enabled" }} {{ $v := .Site.Params.highlight_version | default "9.9.0" }} {{ with .Site.Params.highlight_style }} {{ else }} {{ end }} {{ end }} {{ if not .Site.Params.disable_sri }} {{ printf "" .Site.Data.sri.css.bootstrap | safeHTML }} {{ printf "" .Site.Data.sri.css.academicons | safeHTML }} {{ printf "" .Site.Data.sri.css.fontAwesome | safeHTML }} {{ else }} {{ end }} {{/* We cannot use SRI with Google Fonts because the CSS is dynamically generated according to the user agent */}} {{ range .Site.Params.custom_css }} {{ end }} {{ if .Site.GoogleAnalytics }} {{ if not .Site.Params.disable_sri }} {{ printf "" .Site.Data.sri.js.autotrack | safeHTML }} {{ else }} {{ end }} {{ end }} {{ partial "head_custom" . }} {{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}