mirror of
https://github.com/morgan9e/blog
synced 2026-04-15 00:34:35 +09:00
Reset
This commit is contained in:
11
themes/plain/layouts/_default/sitemap.xml
Normal file
11
themes/plain/layouts/_default/sitemap.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
{{- range .Data.Pages }}
|
||||
{{- if gt .Date.Year 2000 }}
|
||||
<url>
|
||||
<loc>{{ .Permalink }}</loc>
|
||||
<lastmod>{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}</lastmod>
|
||||
</url>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</urlset>
|
||||
Reference in New Issue
Block a user