change sitemap to go template

Signed-off-by: Avelino <avelinorun@gmail.com>
This commit is contained in:
Avelino 2021-12-22 10:14:01 -03:00
parent 62b6fe1c9f
commit 27e9630564

View File

@ -5,8 +5,14 @@
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>http://www.awesome-go.com/</loc>
<lastmod>2016-10-10T07:39:03+00:00</lastmod>
</url>
</urlset>
<url>
<loc>https://www.awesome-go.com/</loc>
<lastmod>2016-10-10T07:39:03+00:00</lastmod>
</url>
{{range .}}
<url>
<loc>https://www.awesome-go.com/{{.Slug}}</loc>
<lastmod>2016-10-10T07:39:03+00:00</lastmod>
</url>
{{end}}
</urlset>