feat: meta viewport
This commit is contained in:
parent
573b0eef89
commit
d1803384a6
8 changed files with 45 additions and 67 deletions
23
apps/blog/src/layouts/Layout.astro
Normal file
23
apps/blog/src/layouts/Layout.astro
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
import '../styles/global.css';
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
showHeader?: boolean;
|
||||
isHome?: boolean;
|
||||
}
|
||||
|
||||
const { title, showHeader = true, isHome = false } = Astro.props;
|
||||
---
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>{title}</title></head>
|
||||
<body>
|
||||
{showHeader && (
|
||||
<header>
|
||||
<pre>{isHome ? 'lewis m.w.' : <a href="/">lewis m.w.</a>} <a href="mailto:lewis@wynne.rs">mail</a> <a href="https://github.com/llywelwyn">gh</a></pre>
|
||||
</header>
|
||||
)}
|
||||
<slot />
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue