Commit f6a815b3 authored by Stephen D's avatar Stephen D
Browse files

Fix RSS feed missing when page is cached

parent 619fcbdc
<% 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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment