Something went wrong. Try again.
Blog Built with AT Protocol skiddle.id
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148---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 segmentsconst 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, }, ],};---
<html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>{title}</title> <meta name="description" content={description} /> <BaseHead title={title} description={description} image={image} /> <script type="application/ld+json">{JSON.stringify(jsonLd)}</script> </head> <body class="antialiased font-mono tracking-normal leading-normal min-h-screen selection:bg-base0A selection:text-base00"> <!-- Mobile top bar — editorial --> <div class="lg:hidden fixed top-0 left-0 right-0 h-12 border-b z-40 flex items-center px-4 gap-3" style="background: var(--color-bg); border-color: var(--color-border)"> <button id="mobileMenuButton" type="button" class="inline-flex items-center justify-center size-9 rounded-md border hover:border-[var(--color-primary)] hover:text-[var(--color-primary)] transition-colors" style="border-color: var(--color-border)" aria-label="Open menu" aria-expanded="false" aria-controls="sidebar"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="size-5" aria-hidden="true"> <path fill-rule="evenodd" d="M3.75 6.75A.75.75 0 0 1 4.5 6h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75Zm0 5.25a.75.75 0 0 1 .75-.75h15a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1-.75-.75Zm.75 4.5a.75.75 0 0 0 0 1.5h15a.75.75 0 0 0 0-1.5h-15Z" clip-rule="evenodd"/> </svg> </button> <a href="/" class="flex items-center gap-2 no-underline"> <img src="https://github.com/arcestia.png" alt="avatar" class="size-6 rounded-full" style="border:1px solid var(--color-border)" /> <span style="font-family: var(--font-heading); font-weight:700; color: var(--color-text)">Skiddle</span> <span class="text-xs px-1.5 py-0.5 rounded-full" style="background:#eef6ff; border:1px solid var(--color-border); color: var(--color-text-muted)">{__GIT_TAG__ || __GIT_DESCRIBE__ || "v3.1"}</span> </a> </div>
<!-- Sidebar (off-canvas on mobile) --> <Sidebar />
<!-- Backdrop for mobile sidebar --> <div id="sidebarBackdrop" class="lg:hidden fixed inset-0 bg-black/30 z-30 hidden"></div>
<div class="lg:pl-56 pt-12 lg:pt-0 flex flex-col min-h-screen"> <main class="flex flex-col gap-3 px-4 lg:px-6 py-4 grow"> <slot /> </main>
<footer class="page__footer px-4 lg:px-6 pb-4"> <Footer /> </footer> </div>
<script> (function() { function setupMobileSidebar() { const btn = document.getElementById('mobileMenuButton'); const sidebar = document.getElementById('sidebar'); const backdrop = document.getElementById('sidebarBackdrop'); if (!btn || !sidebar || !backdrop) return;
function open() { sidebar.classList.remove('-translate-x-full'); backdrop.classList.remove('hidden'); btn.setAttribute('aria-expanded', 'true'); document.documentElement.classList.add('overflow-hidden'); } function close() { sidebar.classList.add('-translate-x-full'); backdrop.classList.add('hidden'); btn.setAttribute('aria-expanded', 'false'); document.documentElement.classList.remove('overflow-hidden'); } function toggle() { if (sidebar.classList.contains('-translate-x-full')) open(); else close(); } btn.addEventListener('click', toggle); backdrop.addEventListener('click', close); document.addEventListener('keydown', (e) => { if (e.key === 'Escape') close(); }); } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', setupMobileSidebar); } else { setupMobileSidebar(); } })(); </script> </body></html>