From ac2bf854dfaecc3488d2fc914154d87305abc70b Mon Sep 17 00:00:00 2001 From: Daniele Tonon Date: Fri, 17 Nov 2023 21:17:01 +0100 Subject: [PATCH] Switch from RSS to Atom --- templates/profile.html | 2 +- templates/relay.html | 2 +- templates/rss.xml | 75 +++++++++++++++++++----------------------- 3 files changed, 36 insertions(+), 43 deletions(-) diff --git a/templates/profile.html b/templates/profile.html index 679817a..2c8285b 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -27,7 +27,7 @@ diff --git a/templates/relay.html b/templates/relay.html index 66a9248..12c22a2 100644 --- a/templates/relay.html +++ b/templates/relay.html @@ -24,7 +24,7 @@ diff --git a/templates/rss.xml b/templates/rss.xml index 60a3a81..7bafe40 100644 --- a/templates/rss.xml +++ b/templates/rss.xml @@ -1,42 +1,35 @@ - - - {{.ModifiedAt}} - {{.ModifiedAt}} - https://github.com/fiatjaf/njump - https://{{.Host}} - - {{if not (eq "" .Npub)}} - Nostr notes by {{.Metadata.Name}} - https://{{.Host}}/{{.Npub}} - - {{.Metadata.Picture}} - https://{{.Host}}/{{.Npub}} - Nostr notes by {{.Metadata.Name}} - - {{end}} - {{if not (eq "" .RelayHostname)}} - Nostr notes on {{.RelayHostname}} - https://{{.Host}}/r/{{.RelayHostname}} - - {{.Info.Icon}} - Nostr notes on {{.RelayHostname}} - https://{{.Host}}/r/{{.RelayHostname}} - - {{end}} + + {{.ModifiedAt}} + https://{{.Host}} +{{if not (eq "" .Npub)}} + Nostr notes by {{.Metadata.Name}} + + {{.Metadata.Name}} + + + {{.Npub}} + {{.Metadata.Picture}} + {{.Metadata.Picture}} +{{end}} +{{if not (eq "" .RelayHostname)}} + Nostr notes on {{.RelayHostname}} + + {{.RelayHostname}} + {{.Info.Icon}} + {{.Info.Icon}} +{{end}} - {{range $i, $ee := .LastNotes}} - - {{$ee.Nevent}} - {{if not (eq "" $ee.RssTitle)}} - {{$ee.RssTitle}} - {{end}} - https://{{$.Host}}/{{$ee.Nevent}} - {{if not (eq "" $ee.Thumb)}} - - {{end}} - {{$ee.RssContent}} - {{$ee.ModifiedAtStr}} - - {{end}} - - \ No newline at end of file +{{range $i, $ee := .LastNotes}} + + {{$ee.Nevent}} + {{if not (eq "" $ee.RssTitle)}} + {{$ee.RssTitle}} + {{end}} + + + {{$ee.RssContent}} + + {{$ee.ModifiedAtStr}} + +{{end}} + \ No newline at end of file