We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c47addb commit 2fb79d6Copy full SHA for 2fb79d6
2 files changed
layouts/_default/sitemap.xml
@@ -1,7 +1,7 @@
1
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
2
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
3
xmlns:xhtml="http://www.w3.org/1999/xhtml">
4
- {{ range .Site.AllPages }}
+ {{ range site.AllPages }}
5
{{- if and (not .Params.sitemap_exclude) (not .Draft) }}
6
<url>
7
<loc>{{ .Permalink }}</loc>
layouts/partials/feature-info.html
@@ -1,5 +1,5 @@
{{ $currentPage := .Page.Permalink }}
-{{ $features := .Site.Data.feature_data }}
+{{ $features := hugo.Data.feature_data }}
{{ if not $features }}
{{ with readFile "data/feature_data.json" }}
{{ $features = . | transform.Unmarshal }}
@@ -63,4 +63,4 @@
63
</div>
64
{{ end }}
65
66
-{{ end }}
+{{ end }}
0 commit comments