Skip to content

Commit

Permalink
Fix sitemap.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
stariy95 committed Mar 21, 2024
1 parent 15f89dc commit 15f3565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/bootique-theme/layouts/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">
{{- $notInSiteMap := slice "/page/" "/docs/" -}}
{{- $notInSiteMap := slice "/page/" "/docs/" "/categories/", "/tags/" -}}
{{- $pagesInSitemap := where .Data.Pages "RelPermalink" "not in" $notInSiteMap -}}
{{- range $pagesInSitemap -}}
{{- if .Permalink }}
Expand Down

0 comments on commit 15f3565

Please sign in to comment.