diff --git a/xml-pages.go b/xml-pages.go index 00dcb2e..b102bdd 100644 --- a/xml-pages.go +++ b/xml-pages.go @@ -18,7 +18,7 @@ type SitemapPage struct { ModifiedAt string // for the profile sitemap - Npub string + Metadata Metadata // for the relay sitemap RelayHostname string @@ -46,7 +46,6 @@ type RSSPage struct { Title string // for the profile RSS - Npub string Metadata Metadata // for the relay RSS diff --git a/xml/rss.xml b/xml/rss.xml index 7bafe40..0d305c4 100644 --- a/xml/rss.xml +++ b/xml/rss.xml @@ -1,13 +1,13 @@ {{.ModifiedAt}} https://{{.Host}} -{{if not (eq "" .Npub)}} +{{if not (eq "" .Metadata.Npub)}} Nostr notes by {{.Metadata.Name}} {{.Metadata.Name}} - - {{.Npub}} + + {{.Metadata.Npub}} {{.Metadata.Picture}} {{.Metadata.Picture}} {{end}} diff --git a/xml/sitemap.xml b/xml/sitemap.xml index 29b7e06..c276413 100644 --- a/xml/sitemap.xml +++ b/xml/sitemap.xml @@ -1,7 +1,7 @@ -{{if not (eq "" .Npub)}} +{{if not (eq "" .Metadata.Npub)}} - https://{{.Host}}/{{.Npub}} + https://{{.Host}}/{{.Metadata.Npub}} {{.ModifiedAt}} daily 0.8