From 526d011a446e49d55b95bbf87685b31196b9a20d Mon Sep 17 00:00:00 2001 From: Bryan J Hogan Date: Sat, 12 Jun 2021 19:14:37 -0400 Subject: [PATCH] fix: workaround Hugo bug with GetPages fetching page from diff path to that specified (#2284) User reported Hugo trying to fetch privacy page from a "tag/privacy" folder rather than root --- wowchemy/layouts/partials/site_footer.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wowchemy/layouts/partials/site_footer.html b/wowchemy/layouts/partials/site_footer.html index 430b83cf..79403eb6 100644 --- a/wowchemy/layouts/partials/site_footer.html +++ b/wowchemy/layouts/partials/site_footer.html @@ -10,13 +10,13 @@ {{ end }} - {{ if or (site.GetPage "terms.md") (site.GetPage "privacy.md") }} + {{ if or (site.GetPage "/terms.md") (site.GetPage "/privacy.md") }}

- {{ with site.GetPage "privacy.md" }} + {{ with site.GetPage "/privacy.md" }} {{ printf "%s" .RelPermalink .Title | safeHTML }} {{ end }} - {{ with site.GetPage "terms.md" }} - {{ if site.GetPage "privacy.md" }} · {{ end }} + {{ with site.GetPage "/terms.md" }} + {{ if site.GetPage "/privacy.md" }} · {{ end }} {{ printf "%s" .RelPermalink .Title | safeHTML }} {{ end }}