mirror of
https://github.com/aljazceru/njump.git
synced 2026-01-11 02:24:33 +01:00
35 lines
1011 B
XML
35 lines
1011 B
XML
<feed xmlns="http://www.w3.org/2005/Atom">
|
|
<updated>{{.ModifiedAt}}</updated>
|
|
<generator>https://{{.Host}}</generator>
|
|
{{if not (eq "" .Npub)}}
|
|
<title>Nostr notes by {{.Metadata.Name}}</title>
|
|
<author>
|
|
<name>{{.Metadata.Name}}</name>
|
|
</author>
|
|
<link href="https://{{.Host}}/{{.Npub}}" />
|
|
<id>{{.Npub}}</id>
|
|
<icon>{{.Metadata.Picture}}</icon>
|
|
<logo>{{.Metadata.Picture}}</logo>
|
|
{{end}}
|
|
{{if not (eq "" .RelayHostname)}}
|
|
<title>Nostr notes on {{.RelayHostname}}</title>
|
|
<link href="https://{{.Host}}/r/{{.RelayHostname}}" />
|
|
<id>{{.RelayHostname}}</id>
|
|
<icon>{{.Info.Icon}}</icon>
|
|
<logo>{{.Info.Icon}}</logo>
|
|
{{end}}
|
|
|
|
{{range $i, $ee := .LastNotes}}
|
|
<entry>
|
|
<id>{{$ee.Nevent}}</id>
|
|
{{if not (eq "" $ee.RssTitle)}}
|
|
<title>{{$ee.RssTitle}}</title>
|
|
{{end}}
|
|
<link rel="alternate" href="https://{{$.Host}}/{{$ee.Nevent}}" />
|
|
<content type="html">
|
|
{{$ee.RssContent}}
|
|
</content>
|
|
<updated>{{$ee.ModifiedAtStr}}</updated>
|
|
</entry>
|
|
{{end}}
|
|
</feed> |