Add rel="self" to Atom feed
This commit is contained in:
parent
ac740cf4b8
commit
c59029cf3d
@ -12,7 +12,9 @@ func GenerateAtomFeed(c *Config, db *DB) (*string, error) {
|
|||||||
feed := atom.NewFeed(c.Title)
|
feed := atom.NewFeed(c.Title)
|
||||||
feed.ID = atom.NewID("urn:feed:1")
|
feed.ID = atom.NewID("urn:feed:1")
|
||||||
feed.Subtitle = atom.NewText("text", c.Description)
|
feed.Subtitle = atom.NewText("text", c.Description)
|
||||||
feed.AddLink(atom.NewLink(c.Link))
|
|
||||||
|
linkID := feed.AddLink(atom.NewLink(c.Link))
|
||||||
|
feed.Links[linkID].Rel = "self"
|
||||||
|
|
||||||
feed.Generator = atom.NewGenerator("cpolis")
|
feed.Generator = atom.NewGenerator("cpolis")
|
||||||
feed.Generator.URI = "https://git.streifling.com/jason/cpolis"
|
feed.Generator.URI = "https://git.streifling.com/jason/cpolis"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user