Files
homepage/src/routes/[recipeLang=recipeLang]/category/+page.svelte
Alexander Bocken ab2a6c9158
All checks were successful
CI / update (push) Successful in 1m20s
feat: add page titles to recipe and glaube routes
- Add titles to category, tag, icon, season routes
- Add bilingual support (German/English) for recipe route titles
- Use consistent "Bocken Recipes" / "Bocken Rezepte" branding
- Change English tagline from "Bocken's Recipes" to "Bocken Recipes"
- Add titles to /glaube and /glaube/gebete pages
- Make tips-and-tricks page language-aware
2026-01-20 19:54:33 +01:00

33 lines
815 B
Svelte

<script lang="ts">
import type { PageData } from './$types';
import "$lib/css/nordtheme.css";
let { data } = $props<{ data: PageData }>();
import TagCloud from '$lib/components/TagCloud.svelte';
import TagBall from '$lib/components/TagBall.svelte';
const isEnglish = $derived(data.lang === 'en');
const labels = $derived({
title: isEnglish ? 'Categories' : 'Kategorien',
siteTitle: isEnglish ? 'Bocken Recipes' : 'Bocken Rezepte'
});
</script>
<svelte:head>
<title>{labels.title} - {labels.siteTitle}</title>
</svelte:head>
<style>
h1 {
text-align: center;
font-size: 3rem;
}
</style>
<h1>{labels.title}</h1>
<section>
<TagCloud>
{#each data.categories as tag}
<TagBall {tag} ref="/{data.recipeLang}/category">
</TagBall>
{/each}
</TagCloud>
</section>