diff --git a/site/decodal-site/src/layouts/ManualLayout.astro b/site/decodal-site/src/layouts/ManualLayout.astro index c89f92f..1935a49 100644 --- a/site/decodal-site/src/layouts/ManualLayout.astro +++ b/site/decodal-site/src/layouts/ManualLayout.astro @@ -2,7 +2,20 @@ import { nav } from '../lib/docs.js'; import '../style.css'; -const { title = 'Decodal', active = '', playground = false, frontpage = false } = Astro.props; +const { + title = 'Decodal', + description = 'Decodal is a deterministic data language for configuration, constraints, and defaults.', + active = '', + playground = false, + frontpage = false, +} = Astro.props; + +const pathname = Astro.url.pathname; +const language = active ? 'ja' : 'en'; + +function isCurrent(path) { + return pathname === path || (path !== '/' && pathname.startsWith(path)); +} function renderNav(items, prefix = []) { return `