sitemaps of sitemaps of profile sitemaps.

This commit is contained in:
fiatjaf
2024-06-16 16:27:24 -03:00
parent d7bdded88f
commit ab34bde883
6 changed files with 56 additions and 5 deletions

View File

@@ -34,6 +34,19 @@ type SitemapPage struct {
func (*SitemapPage) TemplateText() string { return tmplSitemap }
var (
//go:embed xml/sitemap-index.xml
tmplSitemapIndex string
SitemapIndexTemplate = tmpl.MustCompile(&SitemapIndexPage{})
)
type SitemapIndexPage struct {
Host string
Npubs []string
}
func (*SitemapIndexPage) TemplateText() string { return tmplSitemapIndex }
var (
//go:embed xml/rss.xml
tmplRSS string