Skip to content

Commit 2fb79d6

Browse files
committed
fix: replace deprecated Hugo site accessors
1 parent c47addb commit 2fb79d6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

layouts/_default/sitemap.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
33
xmlns:xhtml="http://www.w3.org/1999/xhtml">
4-
{{ range .Site.AllPages }}
4+
{{ range site.AllPages }}
55
{{- if and (not .Params.sitemap_exclude) (not .Draft) }}
66
<url>
77
<loc>{{ .Permalink }}</loc>

layouts/partials/feature-info.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ $currentPage := .Page.Permalink }}
2-
{{ $features := .Site.Data.feature_data }}
2+
{{ $features := hugo.Data.feature_data }}
33
{{ if not $features }}
44
{{ with readFile "data/feature_data.json" }}
55
{{ $features = . | transform.Unmarshal }}
@@ -63,4 +63,4 @@
6363
</div>
6464
{{ end }}
6565
{{ end }}
66-
{{ end }}
66+
{{ end }}

0 commit comments

Comments
 (0)