Skip to content

Commit 39beef0

Browse files
Merge pull request #936 from saurabhraghuvanshii/fix
fix site.Allpage issue
2 parents 1c13657 + d4b84a7 commit 39beef0

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

assets/json/offline-search-index.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{{- $.Scratch.Add "offline-search-index" slice -}}
2-
{{- range where site.AllPages ".Params.exclude_search" "!=" true -}}
3-
{{- /* We have to apply `htmlUnescape` again after `truncate` because `truncate` applies `html.EscapeString` if the argument is not HTML. */ -}}
4-
{{- /* Individual taxonomies can be added in the next line by add '"taxonomy-name" (.Params.taxonomy-name | default "")' to the dict (as seen for categories and tags). */ -}}
2+
{{- range hugo.Sites -}}
3+
{{- range where .Pages ".Params.exclude_search" "!=" true -}}
54
{{- $.Scratch.Add
65
"offline-search-index"
76
(dict
@@ -15,4 +14,5 @@
1514
)
1615
-}}
1716
{{- end -}}
17+
{{- end -}}
1818
{{- $.Scratch.Get "offline-search-index" | jsonify -}}

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.Pages }}
55
{{- if and (not .Params.sitemap_exclude) (not .Draft) }}
66
<url>
77
<loc>{{ .Permalink }}</loc>

package-lock.json

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"devDependencies": {
3434
"autoprefixer": "^10.4.19",
35-
"hugo-extended": "0.157.0",
35+
"hugo-extended": "0.158.0",
3636
"postcss-cli": "^11.0.0"
3737
}
3838
}

0 commit comments

Comments
 (0)