From 5fe38d0246d6c9dbe55fe5eca5b461d1438d2988 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sun, 24 Apr 2022 09:18:04 +0200 Subject: [PATCH] [ci skip] Update the baseof template with changes from Ananke --- layouts/_default/baseof.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 555f7ad..41d8967 100755 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + @@ -9,13 +9,16 @@ {{ hugo.Generator }} {{/* NOTE: For Production make sure you add `HUGO_ENV="production"` before your build command */}} - {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} + {{ $production := eq (getenv "HUGO_ENV") "production" | or (eq site.Params.env "production") }} + {{ $public := not .Params.private }} + {{ if and $production $public }} {{ else }} {{ end }} {{ partial "site-style.html" . }} + {{ partial "site-scripts.html" . }} {{ block "favicon" . }} {{ partialCached "site-favicon.html" . }}