fix: change sitemap format
All checks were successful
Blog Deployment / check-rebuild (push) Successful in 4s
Blog Deployment / build (push) Has been skipped
Blog Deployment / deploy-staging (push) Successful in 8s
Blog Deployment / test-staging (push) Successful in 2s
Blog Deployment / merge (push) Successful in 6s
Blog Deployment / deploy-production (push) Successful in 9s
Blog Deployment / test-production (push) Successful in 2s
Blog Deployment / clean (push) Has been skipped
All checks were successful
Blog Deployment / check-rebuild (push) Successful in 4s
Blog Deployment / build (push) Has been skipped
Blog Deployment / deploy-staging (push) Successful in 8s
Blog Deployment / test-staging (push) Successful in 2s
Blog Deployment / merge (push) Successful in 6s
Blog Deployment / deploy-production (push) Successful in 9s
Blog Deployment / test-production (push) Successful in 2s
Blog Deployment / clean (push) Has been skipped
This commit is contained in:
parent
805d834063
commit
c12e1dcf7f
@ -117,7 +117,7 @@ params:
|
|||||||
mainSections: ["post"]
|
mainSections: ["post"]
|
||||||
description: "A blog documenting my homelab journey, covering automation, self-hosted services, and hands-on experiments with open source technologies."
|
description: "A blog documenting my homelab journey, covering automation, self-hosted services, and hands-on experiments with open source technologies."
|
||||||
favicon: "/favicon-32x32.png"
|
favicon: "/favicon-32x32.png"
|
||||||
excludedFromSitemap: ["/tags/", "/categories/", "/search/"]
|
sitemapFilter: ["/tags/", "/categories/", "/search/"]
|
||||||
|
|
||||||
sidebar:
|
sidebar:
|
||||||
avatar:
|
avatar:
|
||||||
|
@ -1,17 +1,30 @@
|
|||||||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||||
{{ range .Pages }}
|
{{ range $page := .Data.Pages }}
|
||||||
{{ if not (in .Site.Params.excludedFromSitemap .Data.Plural) }}
|
{{- $incldueURL := true -}}
|
||||||
<url>
|
{{- range $val := $.Site.Params.sitemapFilter -}}
|
||||||
<loc>{{ .Permalink }}</loc>
|
{{- if (strings.Contains $page.Permalink $val ) -}}
|
||||||
{{ if not .Lastmod.IsZero }}
|
{{- $incldueURL = false -}}
|
||||||
<lastmod>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</lastmod>
|
{{- end -}}
|
||||||
{{ end }}
|
{{- end -}}
|
||||||
{{ with .Sitemap.ChangeFreq }}
|
{{- if and .Permalink $incldueURL -}}
|
||||||
<changefreq>{{ . }}</changefreq>
|
<url>
|
||||||
{{ end }}
|
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
|
||||||
</url>
|
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
|
||||||
{{ end }}
|
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
|
||||||
|
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
|
||||||
|
<xhtml:link
|
||||||
|
rel="alternate"
|
||||||
|
hreflang="{{ .Language.Lang }}"
|
||||||
|
href="{{ .Permalink }}"
|
||||||
|
/>{{ end }}
|
||||||
|
<xhtml:link
|
||||||
|
rel="alternate"
|
||||||
|
hreflang="{{ .Language.Lang }}"
|
||||||
|
href="{{ .Permalink }}"
|
||||||
|
/>{{ end }}
|
||||||
|
</url>
|
||||||
|
{{- end -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</urlset>
|
</urlset>
|
Loading…
x
Reference in New Issue
Block a user