From 1df2846b6d86024afd7eff89d1c8f3a4106f4d0f Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Wed, 19 Oct 2022 07:36:18 -0700 Subject: [PATCH] Use relative URLs in the baseof template --- layouts/_default/baseof.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index e8e9f6c..4d1151d 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -16,35 +16,37 @@ - - {{ if not hugo.IsProduction }} - - {{ end }} - {{ block "styles" . }}{{ end }} + + {{- if not hugo.IsProduction -}} + + {{- end -}} {{- $includedCSS := slice -}} {{- if not .FirstSection.IsHome -}} {{- range .FirstSection.Resources.Match "*.css" -}} {{- if not (in $includedCSS .Permalink) -}} {{- $includedCSS = $includedCSS | append .Permalink -}} - + {{- end -}} {{- end -}} {{- end -}} + {{- range .Resources.Match "*.css" -}} {{- if not (in $includedCSS .Permalink) -}} {{- $includedCSS = $includedCSS | append .Permalink -}} - + {{- end -}} {{- end -}} + {{ block "styles" . }}{{ end }} + {{ block "scripts" . }}{{ end }} - +