--- import { ClientRouter } from 'astro:transitions'; import Header from '../components/Header.astro'; import Footer from '../components/Footer.astro'; import Icon from '../components/Icon.astro'; import SearchModal from '../components/SearchModal.astro'; import ReportIndexModal from '../components/ReportIndexModal.astro'; import { url } from '../lib/url'; import '../styles/app.css'; import { PALETTES, DEFAULT_PALETTE } from '../lib/palettes'; // Preload the two faces that paint above the fold — the wordmark in the // masthead and the DM Mono the masthead/labels use — so the header does not flash // its fallback on first paint. The rest load on demand via @font-face. import notoWordmark from '../fonts/noto-sans-display-var-latin.woff2'; import dmMono from '../fonts/dm-mono-400.woff2'; interface Props { title?: string; description?: string; railless?: boolean; } const { title = 'DÆMON//SEC — Cyber & IT Cheatsheet Vault', description = 'A curated, glassy vault of the best IT and cybersecurity cheatsheets — Active Directory, enumeration, exploitation, priv-esc, and more.', } = Astro.props; const canonical = new URL(Astro.url.pathname, Astro.site).href; // The pre-paint script's table: palette → browser-chrome colour per mode. const CHROME = Object.fromEntries(PALETTES.map((p) => [p.id, p.chrome])); --- {title}