From ab4a6275a0f94961fc2ce0927fcc9e93c97eabf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Tue, 20 Aug 2024 17:16:04 +0200 Subject: [PATCH] docs: add rss feeds --- docs/pages/blog/index.vue | 5 +++++ docs/pages/changelog/index.vue | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/docs/pages/blog/index.vue b/docs/pages/blog/index.vue index e09fe590..0638297a 100644 --- a/docs/pages/blog/index.vue +++ b/docs/pages/blog/index.vue @@ -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, diff --git a/docs/pages/changelog/index.vue b/docs/pages/changelog/index.vue index 4fb9dd8c..f77e8be0 100644 --- a/docs/pages/changelog/index.vue +++ b/docs/pages/changelog/index.vue @@ -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`,