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
This commit is contained in:
Bryan J Hogan authored and GitHub committed 2021-06-13 00:14:37 +01:00
1 parent efdea8f259
commit 526d011a44
1 file changed
+4 -4
+4 -4
View File
@@ -10,13 +10,13 @@
</div>
{{ end }}
{{ if or (site.GetPage "terms.md") (site.GetPage "privacy.md") }}
{{ if or (site.GetPage "/terms.md") (site.GetPage "/privacy.md") }}
<p class="powered-by">
{{ with site.GetPage "privacy.md" }}
{{ with site.GetPage "/privacy.md" }}
{{ printf "<a href=\"%s\">%s</a>" .RelPermalink .Title | safeHTML }}
{{ end }}
{{ with site.GetPage "terms.md" }}
{{ if site.GetPage "privacy.md" }} &middot; {{ end }}
{{ with site.GetPage "/terms.md" }}
{{ if site.GetPage "/privacy.md" }} &middot; {{ end }}
{{ printf "<a href=\"%s\">%s</a>" .RelPermalink .Title | safeHTML }}
{{ end }}
</p>