Browse Source

Fix RSS feed missing when page is cached

master
Stephen 1 month ago
parent
commit
f6a815b395
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      app/views/post/index.html.erb

+ 5
- 5
app/views/post/index.html.erb View File

@ -1,9 +1,9 @@
<% cache_if current_user.nil?, [@blog, @posts, @page] do %>
<%= content_for :head do %>
<%= auto_discovery_link_tag :rss, blog_url(blog_name: @blog.urlName, format: :rss) %>
<link href="/open-iconic/font/css/open-iconic.css" rel="stylesheet">
<% end %>
<%= content_for :head do %>
<%= auto_discovery_link_tag :rss, blog_url(blog_name: @blog.urlName, format: :rss) %>
<link href="/open-iconic/font/css/open-iconic.css" rel="stylesheet"/>
<% end %>
<% cache_if current_user.nil?, [@blog, @posts, @page] do %>
<% provide(:desc, @blog.slogan) %>
<a style="float: right;" href="<%= blog_url(blog_name: @blog.urlName, format: :rss) %>">
<span style="color: orange;" class="oi" data-glyph="rss" title="rss" aria-hidden="true"></span>


Loading…
Cancel
Save