{{ $description := .Params.description}} {{if .IsHome}} {{ $description = .Site.Params.description}} {{end}} {{if .Site.Params.enableOpenGraph}} {{ template "_internal/opengraph.html" . }} {{end}} {{if .Site.Params.enableTwitterCards}} {{ template "_internal/twitter_cards.html" . }} {{end}} {{ if .Site.GoogleAnalytics }} {{ template "_internal/google_analytics.html" . }} {{ end }} {{if .Site.Params.manifest}} {{end}} {{if .Params.canonicalUrl}} {{end}} {{ if .Site.Params.favicon }} {{ end }} {{ $styles := resources.Get "scss/journal.scss" | toCSS | minify | fingerprint }} {{ if not .Site.Params.disableDarkmode }} {{ $darkmode := resources.Get "scss/dark-mode.scss" | toCSS | minify | fingerprint }} {{ end }} {{- $hugoVersion := split (replaceRE ".*([0-9]+)\\.([0-9]+)\\.([0-9]+).*" "$1 $2 $3" hugo.Version) " " -}} {{- if and (eq (int (index $hugoVersion 0)) 0) (ge (int (index $hugoVersion 1)) 101) -}} {{- /* no leading slash */ -}} {{ if and (not (.Params.disableToC) ) (.IsPage) }} {{ end }} {{- else -}} {{- /* with leading slash */ -}} {{ if and (not (.Params.disableToC) ) (.IsPage) }} {{ end }} {{- end -}} {{ if .Site.Params.cloudflareToken }} {{ end }} {{ if or (.Params.enableLaTeX) (.Site.Params.enableLaTeX) }} {{ end }} {{ if and ( and ( .Site.Params.enableGitalk ) ( .IsPage ) ) ( or ( not ( isset .Params "comment" ) ) ( eq .Params.comment true ) ) }} {{- $hugoVersion := split (replaceRE ".*([0-9]+)\\.([0-9]+)\\.([0-9]+).*" "$1 $2 $3" hugo.Version) " " -}} {{- if and (eq (int (index $hugoVersion 0)) 0) (ge (int (index $hugoVersion 1)) 101) -}} {{- /* no leading slash */ -}} {{- else -}} {{- /* with leading slash */ -}} {{- end -}} {{ end }} {{ if and (.Site.Params.livereId) (.IsPage) }} {{ end }} {{ if and (.Site.Params.disqusShortname) (.IsPage) }} {{ end }} {{ if and (.Site.Params.enableTwikoo) (.IsPage) }} {{ end }} {{ if and (.Site.Params.walineServer) (.IsPage) }} {{ end }} {{- partial "extended_head.html" . }}