Modify

Opened 7 years ago

Closed 7 years ago

#6654 closed enhancement (fixed)

add RSS link to browser even on individual posts

Reported by: Vaclav Slavik Owned by: Odd Simon Simonsen
Priority: normal Component: FullBlogPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

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 Vaclav Slavik 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by Vaclav Slavik

Attachment: feed-on-posts.patch added

comment:1 Changed 7 years ago by Odd Simon Simonsen

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 Vaclav Slavik

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 Odd Simon Simonsen

Resolution: fixed
Status: newclosed

(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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Odd Simon Simonsen.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.