使用 RSS 作为默认订阅输出

This commit is contained in:
Liang Ding
2015-10-01 12:52:17 +08:00
parent f501b81929
commit 8765bba96c
27 changed files with 36 additions and 36 deletions

View File

@@ -32,7 +32,7 @@
<a href="${servePath}/tags.html">${allTagsLabel}</a>
</li>
<li>
<a rel="alternate" href="${servePath}/blog-articles-feed.do">Atom <img src="${staticServePath}/images/feed.png" alt="Atom"/></a>
<a rel="alternate" href="${servePath}/blog-articles-rss.do">RSS <img src="${staticServePath}/images/feed.png" alt="RSS"/></a>
</li>
</ul>
<form class="right" target="_blank" action="http://zhannei.baidu.com/cse/site">

View File

@@ -9,7 +9,7 @@
<meta name="copyright" content="B3log" />
<meta http-equiv="Window-target" content="_top" />
<link type="text/css" rel="stylesheet" href="${staticServePath}/skins/${skinDirName}/css/${skinDirName}${miniPostfix}.css?${staticResourceVersion}" charset="utf-8" />
<link href="${servePath}/blog-articles-feed.do" title="ATOM" type="application/atom+xml" rel="alternate" />
<link href="${servePath}/blog-articles-rss.do" title="RSS" type="application/rss+xml" rel="alternate" />
<link rel="icon" type="image/png" href="${staticServePath}/favicon.png" />
${htmlHead}
</#macro>

View File

@@ -11,10 +11,10 @@
${topBarReplacement}
<#include "header.ftl">
<h3 id="tag" style="cursor: pointer" class="nav-abs"
onclick="window.location.href='${servePath}/tag-articles-feed.do?oId=${tag.oId}'">
onclick="window.location.href='${servePath}/tag-articles-rss.do?oId=${tag.oId}'">
${tag.tagTitle}
(${tag.tagPublishedRefCount})
<img src="${staticServePath}/images/feed.png" alt="Atom"/>
<img src="${staticServePath}/images/feed.png" alt="RSS"/>
</h3>
<#include "article-list.ftl">
<#include "footer.ftl">