{{ $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 .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 }} {{ if .Params.enableMathJax }} {{ partial "mathjax.html" . }} {{ end }} {{ if and (not (.Params.disableToC) ) (.IsPage) }} {{ if .Site.Params.disableAutoCollapse }} {{ else }} {{ end }} {{ end }} {{ if and (.Site.Params.enableGitalk) (.IsPage) }} {{ end }} {{ if and (.Site.Params.livereId) (.IsPage) }} {{ end }} {{ if and (.Site.Params.enableValine) (.IsPage) }} {{ end }} {{ if .Site.Params.disqusShortname }} {{ end }}