- 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
17 lines
559 B
Vue
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>
|