refactor: utilise feed_tag() helper

- https://hexo.io/docs/helpers#feed-tag
This commit is contained in:
MDLeom 2020-08-09 11:51:22 +00:00
parent a852f0e8ce
commit 54d1a3856d
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
2 changed files with 4 additions and 6 deletions

View File

@ -104,9 +104,5 @@ theme_config:
Eepsite: http://mdleom.i2p Eepsite: http://mdleom.i2p
'Eepsite (B32)': http://ggucqf2jmtfxcw7us5sts3x7u2qljseocfzlhzebfpihkyvhcqfa.b32.i2p 'Eepsite (B32)': http://ggucqf2jmtfxcw7us5sts3x7u2qljseocfzlhzebfpihkyvhcqfa.b32.i2p
# Your Feed Location
# https://github.com/hexojs/hexo-generator-feed
rss: /atom.xml
# Load forkawesome icons? See the links option below. # Load forkawesome icons? See the links option below.
icons: false icons: false

View File

@ -26,8 +26,10 @@
<%/* Add Open Graph meta tags for easier sharing on social networking sites */%> <%/* Add Open Graph meta tags for easier sharing on social networking sites */%>
<%/* Modified from original source for compatibility with my blog */%> <%/* Modified from original source for compatibility with my blog */%>
<%- openGraph() %> <%- openGraph() %>
<% if (theme.rss) { %> <% if (config.feed) { %>
<link rel="alternate" href="<%- theme.rss %>" title="<%= config.title %>" type="application/atom+xml"> <%- feed_tag() %>
<% } else if (theme.rss) { %>
<%- feed_tag(theme.rss) %>
<% } %> <% } %>
<%/* Favicon */%> <%/* Favicon */%>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=yyQLrgrMjG"> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=yyQLrgrMjG">