diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6c1cf88..a642419 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -6,7 +6,29 @@ - {{ partial "head.html" . -}} + + + + + + +{{- if .Params.noindex }} + +{{- end }} + + {{ template "_internal/opengraph.html" . -}} + {{ template "_internal/twitter_cards.html" . -}} + +{{- $svg := resources.Get "svg/favicon.svg" | minify | fingerprint }} + +{{- $css := resources.Get "css/style.scss" | toCSS (dict "outputStyle" "compressed") | minify | fingerprint }} + +{{- with .OutputFormats.Get "rss" }} + +{{- end }} +{{- $js := resources.Get "js/color-mode-switcher.js" | js.Build (dict "minify" hugo.IsProduction) | fingerprint }} + + {{ block "title" . }}{{ .Page.Title }} - {{ .Site.Title }}{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html deleted file mode 100644 index 11dcdda..0000000 --- a/layouts/partials/head.html +++ /dev/null @@ -1,28 +0,0 @@ -{{- /* - Copyright (C) 2023-2024 ANSSI - SPDX-License-Identifier: MIT -*/ -}} - - - - - - - -{{- if .Params.noindex }} - -{{- end }} - - {{ template "_internal/opengraph.html" . -}} - - {{ template "_internal/twitter_cards.html" . -}} - -{{- $svg := resources.Get "svg/favicon.svg" | minify | fingerprint }} - -{{- $css := resources.Get "css/style.scss" | toCSS (dict "outputStyle" "compressed") | minify | fingerprint }} - -{{- with .OutputFormats.Get "rss" }} - -{{- end }} -{{- $js := resources.Get "js/color-mode-switcher.js" | js.Build (dict "minify" hugo.IsProduction) | fingerprint }} -