]> juplo.de Git - website/commit
Step 9/11: RSS-Feeds, SEO-Meta-Tags, shared helpers in lib/posts.ts
authorKai Moritz <kai.milan.moritz@googlemail.com>
Sat, 6 Jun 2026 13:13:16 +0000 (13:13 +0000)
committerKai Moritz <kai.milan.moritz@googlemail.com>
Sat, 6 Jun 2026 13:13:16 +0000 (13:13 +0000)
commit6b0c6bd6945042311533045a1e451c70a142ea5e
tree6788c483eff5743e6f25cff151aea117b35123b8
parent3c61e793984900af3e2cedfaf7fd39729b01ccbe
Step 9/11: RSS-Feeds, SEO-Meta-Tags, shared helpers in lib/posts.ts

RSS-Feeds (Step 9):
- /blog/index.xml — Blog-Gesamt-Feed
- /blog/archive/index.xml — Archiv-Feed
- /blog/archive/YYYY/index.xml — Jahres-Feeds (dynamisch)
- /categories/TERM/index.xml — Kategorie-Feeds (dynamisch)
- /tags/TERM/index.xml — Tag-Feeds (dynamisch)

SEO-Meta-Tags (Step 9):
- BaseLayout: description-Prop, <meta name="description">, og:title,
  og:description, og:type, og:url
- [slug].astro: übergibt getSummary(post.body) als description

Shared Helpers (Step 11 Refactoring):
- src/lib/posts.ts: getAllPosts(), postUrl(), getSummary(), wordCount()
- Alle Seiten importieren diese Helpers statt lokale Kopien zu haben
- BlogNav, [slug], blog/index, archive/index, [year], categories/[term],
  tags/[term], index.astro migriert

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17 files changed:
package-lock.json
package.json
src/components/BlogNav.astro
src/layouts/BaseLayout.astro
src/lib/posts.ts [new file with mode: 0644]
src/pages/[slug].astro
src/pages/blog/archive/[year].astro
src/pages/blog/archive/[year]/index.xml.ts [new file with mode: 0644]
src/pages/blog/archive/index.astro
src/pages/blog/archive/index.xml.ts [new file with mode: 0644]
src/pages/blog/index.astro
src/pages/blog/index.xml.ts [new file with mode: 0644]
src/pages/categories/[term].astro
src/pages/categories/[term]/index.xml.ts [new file with mode: 0644]
src/pages/index.astro
src/pages/tags/[term].astro
src/pages/tags/[term]/index.xml.ts [new file with mode: 0644]