Skip to content

Commit d8b651e

Browse files
committed
Merge #188: feat(blog): add UDP tracker floating IP setup article
4f31d17 feat(blog): add UDP tracker floating IP setup article (Jose Celano) Pull request description: ## Summary - add a new blog post: /blog/setup-udp-tracker-behind-floating-ip - include detailed Hetzner/Ubuntu guidance for running a UDP tracker behind floating IPs - document routing, Docker IPv6, SNAT, and verification steps - add source references and related-reading links - add SEO-friendly cover image and update generated blog metadata ## Validation - npm run check (passes; existing warnings only in an older post) - article route served with 200 in dev server during review ACKs for top commit: josecelano: ACK 4f31d17 Tree-SHA512: 09e34fdab60d32a9c3fa8f934aa634af6ea6e47ae3c92890553b4dfde8956048c5ae741df6e9b35052db989a249770eeb8f3208824dc9db7e0134173fab07426
2 parents 9aeb12f + 4f31d17 commit d8b651e

5 files changed

Lines changed: 671 additions & 80 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { getMetadata } from '$lib/data/metadata';
2+
import type { PageServerLoad } from './$types';
3+
4+
export const load: PageServerLoad = async ({ url }) => {
5+
const slug = url.pathname.split('/').filter(Boolean).pop();
6+
if (!slug) throw new Error('Slug could not be determined.');
7+
8+
const metadata = await getMetadata();
9+
const currentPost = metadata.find((post) => post.slug === slug);
10+
11+
if (!currentPost) throw new Error(`Post not found: ${slug}`);
12+
13+
return { currentPost, allPosts: metadata };
14+
};

0 commit comments

Comments
 (0)