fix: fix broken RSS links on other pages

This commit is contained in:
XPoet 2020-04-26 16:10:40 +08:00
parent 903235b772
commit 5ac2345811
2 changed files with 2 additions and 6 deletions

View File

@ -21,9 +21,6 @@
<% if (title){ %><%= title %> | <% } %><%= config.title %> <% if (title){ %><%= title %> | <% } %><%= config.title %>
</title> </title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<% if (theme.rss){ %>
<link rel="alternate" href="<%= url_for(theme.rss) %>" title="<%= config.title %>" type="application/atom+xml">
<% } %>
<% if (theme.favicon){ %> <% if (theme.favicon){ %>
<%- favicon_tag(theme.favicon) %> <%- favicon_tag(theme.favicon) %>
<% } %> <% } %>

View File

@ -9,10 +9,9 @@
<li class="mode-toggle"> <li class="mode-toggle">
<i class="fa fa-moon-o"></i> <i class="fa fa-moon-o"></i>
</li> </li>
<% if (theme.local_search.enable) { %> <% if (theme.local_search.enable && config.feed) { %>
<li class="rss"> <li class="rss">
<!-- TODO --> <a href="<%= '/' + config.feed.path %>" target="_blank"><i class="fa fa-rss"></i></a>
<a href="<%= config.feed.path %>" target="_blank"><i class="fa fa-rss"></i></a>
</li> </li>
<% } %> <% } %>
</ul> </ul>