Initial SvelteKit frontend port of windwiderstand.de
Full parity with Astro site: content rows, post/tag routes, pagination, event badges + OSM map, comments, Live-Search via /api/search-index, CMS image proxy, RSS, sitemap. Deploy: Dockerfile + docker-compose.prod.yml + Gitea Actions workflow to build + push to git.pm86.de registry and ssh-deploy to Contabo.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import type { PageServerLoad } from './$types';
|
||||
import { loadPostsList } from '$lib/blog-utils';
|
||||
import { t, T } from '$lib/translations';
|
||||
|
||||
export const load: PageServerLoad = async ({ locals }) => {
|
||||
const translations = locals.translations ?? {};
|
||||
const result = await loadPostsList({ page: 1 });
|
||||
|
||||
return {
|
||||
...result,
|
||||
translations,
|
||||
seoTitle: `${t(translations, T.posts_title)} – Aktuelles`,
|
||||
seoDescription: 'Übersicht aller Beiträge und Meldungen.',
|
||||
breadcrumbItems: [
|
||||
{ href: '/', label: t(translations, T.nav_start) },
|
||||
{ label: t(translations, T.nav_posts) },
|
||||
],
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user