mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
35 lines
907 B
XML
35 lines
907 B
XML
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
{{if not (eq "" .Metadata.PubKey)}}
|
|
<url>
|
|
<loc>https://{{.Host}}/{{.Metadata.Npub}}</loc>
|
|
<lastmod>{{.ModifiedAt}}</lastmod>
|
|
<changefreq>daily</changefreq>
|
|
<priority>0.8</priority>
|
|
</url>
|
|
{{- end}}
|
|
{{if not (eq "" .RelayHostname)}}
|
|
<url>
|
|
<loc>https://{{.Host}}/r/{{.RelayHostname}}</loc>
|
|
<lastmod>{{.ModifiedAt}}</lastmod>
|
|
<changefreq>daily</changefreq>
|
|
<priority>0.8</priority>
|
|
</url>
|
|
{{- end}}
|
|
{{range $i, $ee := .LastNotes}}
|
|
<url>
|
|
<loc>https://{{$.Host}}/{{$ee.Nevent}}</loc>
|
|
<lastmod>{{$ee.ModifiedAtStr}}</lastmod>
|
|
<changefreq>never</changefreq>
|
|
<priority>0.5</priority>
|
|
</url>
|
|
{{- end}}
|
|
{{range $element := .Data }}
|
|
<url>
|
|
<loc>https://{{$.Host}}/{{$.PathPrefix}}{{$element}}</loc>
|
|
<lastmod>{{$.ModifiedAt}}</lastmod>
|
|
<changefreq>daily</changefreq>
|
|
<priority>0.5</priority>
|
|
</url>
|
|
{{- end}}
|
|
</urlset>
|