mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
sitemaps of sitemaps of profile sitemaps.
This commit is contained in:
13
xml-pages.go
13
xml-pages.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user