diff --git a/lib/middleware/template.js b/lib/middleware/template.js index 0653f2aec..63194c39e 100644 --- a/lib/middleware/template.js +++ b/lib/middleware/template.js @@ -57,6 +57,7 @@ module.exports = async (ctx, next) => { lastBuildDate: new Date().toUTCString(), updated: new Date().toISOString(), ttl: routeTtl, + atomlink: ctx.request.header.host + ctx.request.path, ...ctx.state.data, }; if (template) { diff --git a/lib/views/atom.art b/lib/views/atom.art index 86099dd9f..d9c5686e7 100644 --- a/lib/views/atom.art +++ b/lib/views/atom.art @@ -1,7 +1,7 @@ RSSHub - i@diygod.me + i@diygod.me (DIYgod) {{ language || 'zh-cn' }} {{ id || link }} <![CDATA[{{@ title || 'RSSHub' }}]]> diff --git a/lib/views/rss.art b/lib/views/rss.art index dd68fe46a..9c25a4bc8 100644 --- a/lib/views/rss.art +++ b/lib/views/rss.art @@ -2,14 +2,15 @@ {{ if itunes_author }} {{else}} - + {{ /if }} <![CDATA[{{@ title || 'RSSHub' }}]]> {{ link || 'https://github.com/DIYgod/RSSHub' }} + RSSHub - i@diygod.me + i@diygod.me (DIYgod) {{ if itunes_author }}{{ itunes_author}}{{ /if }} {{ if itunes_category }}{{ /if }} {{ language || 'zh-cn' }}