diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 806fbc5..651d20f 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -6,55 +6,53 @@ {{- $main := resources.Get "scss/main.scss" | resources.ToCSS }} {{- /* Combine all of the custom schems in under one stylesheet */ -}} -{{- $themes := resources.Get "templates/theme.scss" | resources.ExecuteAsTemplate "css/themes.css" . | resources.ToCSS }} +{{- $themes := resources.Get "templates/theme.scss" | resources.ExecuteAsTemplate "css/themes.css" . | resources.ToCSS +}} -{{- /* Append the main stylesheet to be the last so the resulting stylesheet will make the custom colorschemes at the front. */ -}} +{{- /* Append the main stylesheet to be the last so the resulting stylesheet will make the custom colorschemes at the +front. */ -}} {{ $stylesheets = $stylesheets | append $themes $main }} {{ $style := $stylesheets | resources.Concat "css/main.css" }} {{- /* Only enable asset bundling in production */ -}} {{- if hugo.IsProduction }} - {{- $style = $style | resources.Minify | resources.Fingerprint -}} +{{- $style = $style | resources.Minify | resources.Fingerprint -}} {{- end }} {{- /* Persistent theme. It's a very small script so there's little effect on perceived performance. */ -}} - + -{{- /* Some sane tags default */ -}} {{ hugo.Generator }} {{- with .Site.Author }} {{- $names := slice }} {{- range . }}{{ $names = $names | append .name }}{{ end }} - + {{- end }} - + {{- template "_internal/twitter_cards.html" . }} {{- template "_internal/opengraph.html" . }} {{- template "_internal/schema.html" . }} - -{{- /* Linking all of the output formats for discovery. */ -}} {{- range .OutputFormats }} - {{- printf "" .Rel .MediaType.Type .RelPermalink | safeHTML }} +{{- printf "" .Rel .MediaType.Type .RelPermalink | safeHTML }} {{- end }} {{- if hugo.IsProduction }} - {{ template "_internal/google_analytics_async.html" . }} - {{ template "_internal/disqus.html" . }} +{{ template "_internal/disqus.html" . }} {{- end }} -