1
0
mirror of https://github.com/avinal/avinal.github.io.git synced 2026-07-03 23:30:09 +05:30

fix sitemap

This commit is contained in:
2023-07-20 20:35:22 +05:30
parent 77ef0f8191
commit c7da3e3388
2 changed files with 14 additions and 17 deletions
+11 -15
View File
@@ -1,19 +1,15 @@
{{ 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"
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">
{{ 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>
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>
{{- end -}} {{ end }} </urlset>
+3 -2
View File
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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">
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">
<url>
<loc>https://avinal.space/</loc>
<lastmod>2023-01-02T10:57:27+00:00</lastmod>