mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-12-21 07:31:58 +01:00
Add RSS feed link in the news page (#40)
* Add RSS feed link in the news page. * Remove orange color to use brand color.
This commit is contained in:
parent
f8d334e6e0
commit
ffd5cb32f4
27
website/src/.vitepress/theme/components/RssLink.vue
Normal file
27
website/src/.vitepress/theme/components/RssLink.vue
Normal file
@ -0,0 +1,27 @@
|
||||
<script setup lang="ts">
|
||||
import { IconRssBox } from "@iconify-prerendered/vue-mdi"
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<a href="/feed.xml" class="rss" title="RSS feed for the news archive">
|
||||
<IconRssBox />
|
||||
<span>RSS feed</span>
|
||||
</a>
|
||||
</template>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.rss {
|
||||
& > * {
|
||||
vertical-align: middle
|
||||
position: relative
|
||||
bottom: 1px
|
||||
}
|
||||
|
||||
svg {
|
||||
width: 1em
|
||||
height: 1em
|
||||
display: inline-block
|
||||
margin-right: 4px
|
||||
}
|
||||
}
|
||||
</style>
|
@ -9,10 +9,13 @@ next: false
|
||||
|
||||
<script setup>
|
||||
import News from "@theme/components/News.vue";
|
||||
import RssLink from "@theme/components/RssLink.vue";
|
||||
</script>
|
||||
|
||||
# News archive
|
||||
|
||||
Collection of news and announcements about Tachiyomi.
|
||||
|
||||
Also available as <RssLink />.
|
||||
|
||||
<News />
|
||||
|
Loading…
Reference in New Issue
Block a user