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
This commit is contained in:
2026-10-09 18:06:20 +02:00
parent c408eeb2ca
commit 783426c5d8
17 changed files with 501 additions and 21 deletions

View File

@@ -20,6 +20,12 @@ for tool in git pnpm node; do
done
WORK="$(mktemp -d "${TMPDIR:-/tmp}/journal-git-install.XXXXXX")"
# Nuxt applies its auto-import transform to any path with a
# /vue-journal-layer/ segment (how it finds a layer inside node_modules), so a
# scratch app below such a directory would transform every dependency.
case "$WORK/" in
*/vue-journal-layer/*) rm -rf "$WORK"; die "TMPDIR must not be inside a directory named vue-journal-layer" ;;
esac
cleanup() { rm -rf "$WORK"; }
trap cleanup EXIT
@@ -56,6 +62,7 @@ cat >nuxt.config.ts <<'TS'
export default defineNuxtConfig({
extends: ['vue-journal-layer'],
compatibilityDate: '2025-07-15',
site: { url: 'https://acme.test', name: 'Acme Blog' },
i18n: {
strategy: 'prefix_except_default',
defaultLocale: 'en',