Opened 7 years ago

Closed 7 years ago

#6654 closed enhancement (fixed)

add RSS link to browser even on individual posts

Reported by: vslavik Owned by: osimons
Priority: normal Component: FullBlogPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


It is common for blogs to have <link rel="alternate"> in the header even on individual posts, but FullBlogPlugin doesn't do that. This patch fixes it.

It's a bit of a hack: I didn't use Trac's add_link() function, because that would add (IMHO inappropriate on individual posts) "Download in other formats" link to the bottom of the page. So I add the feed link manually in fullblog_view.html template.

Attachments (1)

feed-on-posts.patch (823 bytes) - added by vslavik 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by vslavik

comment:1 follow-up: Changed 7 years ago by osimons

Oh. I see. You want the RSS feed for the blog to be discoverable by browers when viewing individual posts too. Makes sense.

For individual posts, my idea was to provide a detailed feed for the post that also inluded comments as well: #4803

What would be the correct combination of links here?

comment:2 in reply to: ↑ 1 Changed 7 years ago by vslavik

Replying to osimons:

What would be the correct combination of links here?

I don't understand the question... But you can have multiple feeds on the same page, so why not have <link> entries for both posts and comments feeds? It's quite common way to do it...

comment:3 Changed 7 years ago by osimons

  • Resolution set to fixed
  • Status changed from new to closed

(In [7762]) FullBlogPlugin: Link to main RSS feed when viewing individual posts. The various list views already does this using add_link(), but done in head directly to avoid "Alternate Formats" section.

Thanks to Vaclav Slavik for report + patch. Closes #6654.

Add Comment

Modify Ticket

as closed The owner will remain osimons.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.