Files
vue-journal-layer/app/components/Journal/RssLink.vue
Jakub Zych 783426c5d8 feat: Journal author and tag pages, SEO, sitemap source and RSS route
- author pages resolve slug or login and canonicalise to the slug
- tag pages, per-page SEO meta and canonicals that keep ?page=N
- sitemap source pages the API and builds locs from journal.routes
- /rss.xml proxies the API feed with x-forwarded-for
- neutral README; version 0.1.0
2026-10-09 18:06:20 +02:00

17 lines
559 B
Vue

<script setup lang="ts">
// Advertises /rss.xml in the head and shows a visible feed link. Renders
// nothing when journal.rss is false.
const rss = (useRuntimeConfig().public.journal as { rss?: boolean }).rss !== false
const { t } = useI18n()
if (rss) {
useHead({
link: [{ rel: 'alternate', type: 'application/rss+xml', title: t('journal.rss.title'), href: '/rss.xml', key: 'journal-rss' }],
})
}
</script>
<template>
<a v-if="rss" href="/rss.xml" class="journal-rss-link" type="application/rss+xml">{{ $t('journal.rss.title') }}</a>
</template>