Skip to content

Commit ea723bb

Browse files
committed
sitemap
1 parent ffdd587 commit ea723bb

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

layouts/robots.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Allow: /
3+
4+
Sitemap: https://anmo-fish.github.io/sitemap.xml

layouts/sitemap.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
2+
{{- range .Site.RegularPages -}}
3+
{{- with .Permalink -}}
4+
<url>
5+
<loc>{{ . }}</loc>
6+
{{- if not $.Lastmod.IsZero -}}
7+
<lastmod>{{ $.Lastmod.Format "2006-01-02T15:04:05Z07:00" }}</lastmod>
8+
{{- end -}}
9+
</url>
10+
{{- end -}}
11+
{{- end -}}
12+
</urlset>

0 commit comments

Comments
 (0)