1
0
mirror of https://github.com/avinal/avinal.github.io.git synced 2026-07-03 23:30:09 +05:30
Files
avinal.github.io/html-only/layouts/_default/sitemap.xml
T
2023-07-20 20:35:22 +05:30

15 lines
944 B
XML

{{ printf "<?xml version= \"1.0\" encoding= \"utf-8\" standalone= \"yes\"?>" | safeHTML }}
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"> {{ range .Data.Pages }} {{- if
.Permalink -}} <url>
<loc>https://null.avinal.space{{ .RelPermalink }}</loc>{{ if not .Lastmod.IsZero }} <lastmod>{{
safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with
.Sitemap.ChangeFreq }} <changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }} <priority>{{
.Sitemap.Priority }}</priority>{{ end }} <image:image>
<image:loc>https://null.avinal.space{{ .Params.image }}</image:loc>
</image:image>
</url>
{{- end -}} {{ end }} </urlset>