Forráskód Böngészése

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
Bryan J Hogan 3 éve
szülő
commit
526d011a44
1 módosított fájl, 4 hozzáadás és 4 törlés
  1. 4 4
      wowchemy/layouts/partials/site_footer.html

+ 4 - 4
wowchemy/layouts/partials/site_footer.html

@@ -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>