views: refactor atom feed links.

* Fix comment & forum feeds to include search params.
* Remove global post feeds (only include post feeds on post index).
This commit is contained in:
evazion
2020-01-26 16:54:34 -06:00
parent 815703a922
commit c36c0b9e7a
11 changed files with 21 additions and 20 deletions

View File

@@ -1,6 +1,7 @@
<% page_title @post.presenter.humanized_essential_tag_string %>
<% meta_description "View this #{@post.image_width}x#{@post.image_height} #{number_to_human_size(@post.file_size)} image" %>
<% atom_feed_tag "Comments for post ##{@post.id}", comments_url(:atom, search: { post_id: @post.id }) %>
<%= render "posts/partials/common/secondary_links" %>
<% content_for(:sidebar) do %>
@@ -187,6 +188,4 @@
<%= tag.meta name: "og:type", content: "website" %>
<%= tag.meta name: "og:site", content: Danbooru.config.app_name %>
<%= auto_discovery_link_tag(:atom, comments_url(:atom, search: { post_id: @post.id }), title: "Comments for post ##{@post.id}") %>
<% end %>