--- import BaseHead from '../components/base-head.astro'; import Sidebar from '../components/sidebar.astro'; import Footer from '../components/footer.astro'; import '@fontsource/geist-mono'; import '../style.css'; interface Props { title?: string; description?: string; image?: string; children: any; } const { title = 'Skiddle — Systems Architecture', description = "Jeff (Skiddle) — night-shift DevOps engineer in Bangkok, building platforms, automation, and open internet infrastructure.", image = '/android-chrome-512x512.png', } = Astro.props; const site = Astro.site; const canonical = new URL(Astro.url.pathname, site).toString(); // Build BreadcrumbList from the path segments const segments = Astro.url.pathname .split('/') .filter(Boolean); const breadcrumbItems = [ { '@type': 'ListItem', position: 1, name: 'Home', item: site }, ...segments.map((seg, idx) => { const url = new URL('/' + segments.slice(0, idx + 1).join('/'), site).toString(); const name = seg.replace(/[-_]/g, ' ').replace(/\b\w/g, (m) => m.toUpperCase()); return { '@type': 'ListItem', position: idx + 2, name, item: url }; }), ]; const jsonLd = { '@context': 'https://schema.org', '@graph': [ { '@type': 'WebSite', name: 'Skiddle', url: site, inLanguage: 'en', potentialAction: { '@type': 'SearchAction', target: `${site}posts?q={search_term_string}`, 'query-input': 'required name=search_term_string', }, }, { '@type': 'Organization', name: 'Skiddle', url: site, logo: '/android-chrome-512x512.png', }, { '@type': 'WebPage', url: canonical, name: title, description: description, }, { '@type': 'BreadcrumbList', itemListElement: breadcrumbItems, }, ], }; ---