diff options
| author | 2026-03-30 23:25:59 +0700 | |
|---|---|---|
| committer | 2026-03-30 23:25:59 +0700 | |
| commit | 7a40c01dd14f04787f5052d0c89e0d6fb9ce597f (patch) | |
| tree | 4edc2d756295cbbf1f935a5f681b6be69b5584b4 /views | |
| parent | 52fbb4a4eb781dd4ba66fae0e1ceaec6721758f5 (diff) | |
| download | web-7a40c01dd14f04787f5052d0c89e0d6fb9ce597f.tar.gz web-7a40c01dd14f04787f5052d0c89e0d6fb9ce597f.zip | |
feat: build sitemap.xml
Diffstat (limited to 'views')
| -rw-r--r-- | views/pages/sitemap.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/views/pages/sitemap.xml b/views/pages/sitemap.xml new file mode 100644 index 0000000..1474a56 --- /dev/null +++ b/views/pages/sitemap.xml @@ -0,0 +1,10 @@ +<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> + {{- range .URLs }} + <url> + <loc>{{ $.CanonicalEndpoint }}{{ .Loc }}</loc> + <lastmod>{{ .LastModified.UTC.Format "2006-01-02T15:04:05Z" }}</lastmod> + <changefreq>{{ .ChangeFreq }}</changefreq> + <priority>{{ printf "%.1f" .Priority }}</priority> + </url> + {{- end }} +</urlset> |