feat: add page titles to recipe and glaube routes
All checks were successful
CI / update (push) Successful in 1m20s
All checks were successful
CI / update (push) Successful in 1m20s
- 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
This commit is contained in:
@@ -14,6 +14,10 @@
|
||||
const months = $derived(isEnglish
|
||||
? ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
|
||||
: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"]);
|
||||
const labels = $derived({
|
||||
title: isEnglish ? 'In Season' : 'Saisonal',
|
||||
siteTitle: isEnglish ? 'Bocken Recipes' : 'Bocken Rezepte'
|
||||
});
|
||||
|
||||
// Search state
|
||||
let matchedRecipeIds = $state(new Set());
|
||||
@@ -34,6 +38,10 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>{labels.title} - {labels.siteTitle}</title>
|
||||
</svelte:head>
|
||||
|
||||
<SeasonLayout active_index={current_month-1} {months} routePrefix="/{data.recipeLang}" lang={data.lang} recipes={data.season} isLoggedIn={!!data.session?.user} onSearchResults={handleSearchResults}>
|
||||
{#snippet recipesSlot()}
|
||||
<Recipes>
|
||||
|
||||
Reference in New Issue
Block a user