add: folder structure for markdown content pages

This commit is contained in:
2024-02-29 11:08:31 +01:00
parent a91ad8398d
commit 70ccf24c6b
10 changed files with 198 additions and 47 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import '../styles/main.scss'
const { title, description, thumbnail, pageName } = Astro.props
---
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
@@ -22,7 +22,7 @@ const { title, description, thumbnail, pageName } = Astro.props
<title>{title}</title>
</head>
<body class:list={['page-' + (pageName ?? 'unknown')]}>
<body class:list={Array.isArray(pageName) ? pageName : [pageName]}>
<slot />
</body>
</html>