mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 20:15:25 +00:00
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:
1 parent
efdea8f259
commit
526d011a44
1 file changed
+4
-4
@@ -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" }} · {{ end }}
|
||||
{{ with site.GetPage "/terms.md" }}
|
||||
{{ if site.GetPage "/privacy.md" }} · {{ end }}
|
||||
{{ printf "<a href=\"%s\">%s</a>" .RelPermalink .Title | safeHTML }}
|
||||
{{ end }}
|
||||
</p>
|
||||
|
||||
Reference in new issue
Block a user