<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>
