mirror of
https://github.com/aljazceru/njump.git
synced 2026-02-10 08:34:24 +01:00
40 lines
1.1 KiB
XML
40 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
{{if .npub}}
|
|
<url>
|
|
<loc>https://{{s.CanonicalHost}}/{{.npub | escapeString}}</loc>
|
|
<lastmod>{{.modifiedAt | escapeString}}</lastmod>
|
|
<changefreq>daily</changefreq>
|
|
<priority>0.8</priority>
|
|
</url>
|
|
{{end}}
|
|
{{if .hostname}}
|
|
<url>
|
|
<loc>https://{{s.CanonicalHost}}/r/{{.hostname | escapeString}}</loc>
|
|
<lastmod>{{.modifiedAt | escapeString}}</lastmod>
|
|
<changefreq>daily</changefreq>
|
|
<priority>0.8</priority>
|
|
</url>
|
|
{{end}}
|
|
{{if .lastNotes}}
|
|
{{range .lastNotes}}
|
|
<url>
|
|
<loc>https://{{s.CanonicalHost}}/{{.Nevent | escapeString}}</loc>
|
|
<lastmod>{{.ModifiedAt | escapeString}}</lastmod>
|
|
<changefreq>never</changefreq>
|
|
<priority>0.5</priority>
|
|
</url>
|
|
{{end}}
|
|
{{end}}
|
|
{{if .data}}
|
|
{{range $element := .data }}
|
|
<url>
|
|
<loc>https://{{s.CanonicalHost}}/{{$.pathPrefix}}{{$element | trimProtocol | escapeString}}</loc>
|
|
<lastmod>{{$.modifiedAt | escapeString}}</lastmod>
|
|
<changefreq>daily</changefreq>
|
|
<priority>0.5</priority>
|
|
</url>
|
|
{{end}}
|
|
{{end}}
|
|
</urlset>
|