Initial commit: Astro 6 static blog site
All checks were successful
Deploy / deploy (push) Successful in 49s
All checks were successful
Deploy / deploy (push) Successful in 49s
- German (default) and English i18n support - Categories and tags - Blog posts with hero images - Dark/light theme switcher - View Transitions removed to fix reload ghost images - Webmentions integration - RSS feeds per locale Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
commit
5bb63bacf5
95 changed files with 12199 additions and 0 deletions
18
src/pages/en/category/[slug].astro
Normal file
18
src/pages/en/category/[slug].astro
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
import type { CollectionEntry } from 'astro:content';
|
||||
import CategoryDetailPage from '~/components/CategoryDetailPage.astro';
|
||||
import { entrySlug, getCategoriesByLocale } from '~/i18n/posts';
|
||||
|
||||
export async function getStaticPaths() {
|
||||
const categories = await getCategoriesByLocale('en');
|
||||
return categories.map((category) => ({
|
||||
params: { slug: entrySlug(category) },
|
||||
props: { category },
|
||||
}));
|
||||
}
|
||||
|
||||
type Props = { category: CollectionEntry<'categories'> };
|
||||
const { category } = Astro.props;
|
||||
---
|
||||
|
||||
<CategoryDetailPage locale="en" category={category} />
|
||||
Loading…
Add table
Add a link
Reference in a new issue