Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions assets/json/offline-search-index.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{{- $.Scratch.Add "offline-search-index" slice -}}
{{- range where site.AllPages ".Params.exclude_search" "!=" true -}}
{{- /* We have to apply `htmlUnescape` again after `truncate` because `truncate` applies `html.EscapeString` if the argument is not HTML. */ -}}
{{- /* 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). */ -}}
{{- range hugo.Sites -}}
{{- range where .Pages ".Params.exclude_search" "!=" true -}}
{{- $.Scratch.Add
"offline-search-index"
(dict
Expand All @@ -15,4 +14,5 @@
)
-}}
{{- end -}}
{{- end -}}
{{- $.Scratch.Get "offline-search-index" | jsonify -}}
2 changes: 1 addition & 1 deletion layouts/_default/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
{{ range site.AllPages }}
{{ range site.Pages }}
{{- if and (not .Params.sitemap_exclude) (not .Draft) }}
<url>
<loc>{{ .Permalink }}</loc>
Expand Down
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"devDependencies": {
"autoprefixer": "^10.4.19",
"hugo-extended": "0.157.0",
"hugo-extended": "0.158.0",
"postcss-cli": "^11.0.0"
}
}
Loading