check metadata

This commit is contained in:
2024-12-03 23:46:44 +01:00
parent 940cd5cea9
commit 2a61eba012
5 changed files with 20 additions and 16 deletions

View File

@@ -5,18 +5,17 @@ import Root from './Root.astro'
export type Props = {
title: string
readable?: boolean
expanded?: boolean
}
const { title, readable = false, expanded = true } = Astro.props
const { title, readable = false } = Astro.props
---
<Root>
<Root {title}>
<div>
<h1>
<SpacedLetters letters={title} {readable} />
</h1>
<section class:list={{ expanded }}>
<section>
<slot />
</section>
</div>
@@ -39,9 +38,6 @@ const { title, readable = false, expanded = true } = Astro.props
display: flex;
flex-direction: column;
gap: 1rem;
}
section.expanded {
margin-top: 5em;
}

View File

@@ -2,12 +2,17 @@
import BaseHead from '../components/BaseHead.astro'
import Nav from '../components/Nav.astro'
import Progress from '../components/Progress.svelte'
interface Props {
title?: string
image?: string
}
---
<!doctype html>
<html lang="en">
<head>
<BaseHead />
<BaseHead {...Astro.props} />
</head>
<body>
<Nav />