Skip to content

Commit

Permalink
docs: add rss feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Aug 20, 2024
1 parent 8799f77 commit ab4a627
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/pages/blog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ const { data: posts } = await useAsyncData('posts', async () => {
const title = page.value.head?.title || page.value.title
const description = page.value.head?.description || page.value.description
useHead({
link: [
{ rel: 'alternate', type: 'application/rss+xml', title: 'NuxtHub Blog', href: '/blog/feed.xml' }
]
})
useSeoMeta({
titleTemplate: '%s',
title,
Expand Down
5 changes: 5 additions & 0 deletions docs/pages/changelog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ const scrollTop = ref(0)
const { y } = useWindowScroll()
const { isScrolling, arrivedState } = useScroll(document)
useHead({
link: [
{ rel: 'alternate', type: 'application/rss+xml', title: 'NuxtHub Changelog', href: '/changelog/feed.xml' }
]
})
useSeoMeta({
title: page.value.title,
ogTitle: `${page.value.title} · NuxtHub`,
Expand Down

0 comments on commit ab4a627

Please sign in to comment.