Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
fix: web feed link should be absolute path (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
billyyyyy3320 authored Jan 25, 2020
1 parent 47de5d7 commit 577477a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/Feed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<a
v-if="getFirstEnabledFeed"
class="feed"
:href="getFirstEnabledFeed | getFeedFileName"
:href="getFirstEnabledFeed | getFeedFilePath"
>
<RssIcon />
</a>
Expand All @@ -14,10 +14,10 @@ import { RssIcon } from 'vue-feather-icons'
export default {
components: { RssIcon },
filters: {
getFeedFileName(feed) {
if (feed === 'rss') return 'rss.xml'
if (feed === 'atom') return 'feed.atom'
if (feed === 'json') return 'feed.json'
getFeedFilePath(feed) {
if (feed === 'rss') return '/rss.xml'
if (feed === 'atom') return '/feed.atom'
if (feed === 'json') return '/feed.json'
return ''
},
},
Expand Down

0 comments on commit 577477a

Please sign in to comment.