mirror of
https://github.com/avinal/avinal.github.io.git
synced 2026-07-04 07:40:09 +05:30
fix sitemap
This commit is contained in:
@@ -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
|
<urlset
|
||||||
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
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"
|
||||||
{{ range .Data.Pages }}
|
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"> {{ range .Data.Pages }} {{- if
|
||||||
{{- if .Permalink -}}
|
.Permalink -}} <url>
|
||||||
<url>
|
<loc>https://null.avinal.space{{ .RelPermalink }}</loc>{{ if not .Lastmod.IsZero }} <lastmod>{{
|
||||||
<loc>https://null.avinal.space{{ .RelPermalink }}</loc>{{ if not .Lastmod.IsZero }}
|
safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with
|
||||||
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
|
.Sitemap.ChangeFreq }} <changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }} <priority>{{
|
||||||
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
|
.Sitemap.Priority }}</priority>{{ end }} <image:image>
|
||||||
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}
|
|
||||||
<image:image>
|
|
||||||
<image:loc>https://null.avinal.space{{ .Params.image }}</image:loc>
|
<image:loc>https://null.avinal.space{{ .Params.image }}</image:loc>
|
||||||
</image:image>
|
</image:image>
|
||||||
</url>
|
</url>
|
||||||
{{- end -}}
|
{{- end -}} {{ end }} </urlset>
|
||||||
{{ end }}
|
|
||||||
</urlset>
|
|
||||||
+3
-2
@@ -1,8 +1,9 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<urlset
|
<urlset
|
||||||
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
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>
|
<url>
|
||||||
<loc>https://avinal.space/</loc>
|
<loc>https://avinal.space/</loc>
|
||||||
<lastmod>2023-01-02T10:57:27+00:00</lastmod>
|
<lastmod>2023-01-02T10:57:27+00:00</lastmod>
|
||||||
|
|||||||
Reference in New Issue
Block a user