aboutsummaryrefslogtreecommitdiff
path: root/src/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'src/layouts')
-rw-r--r--src/layouts/Default.astro4
-rw-r--r--src/layouts/ThreadLayout.astro22
2 files changed, 22 insertions, 4 deletions
diff --git a/src/layouts/Default.astro b/src/layouts/Default.astro
index 3c0b6ff..ae59edb 100644
--- a/src/layouts/Default.astro
+++ b/src/layouts/Default.astro
@@ -2,13 +2,10 @@
const { title } = Astro.props as Props;
---
-<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
- <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
- <meta name="generator" content={Astro.generator} />
<title>{title}</title>
</head>
<body>
@@ -19,6 +16,5 @@ const { title } = Astro.props as Props;
<style>
html {
font-family: sans-serif;
- padding-left: 1em;
}
</style>
diff --git a/src/layouts/ThreadLayout.astro b/src/layouts/ThreadLayout.astro
new file mode 100644
index 0000000..24aba41
--- /dev/null
+++ b/src/layouts/ThreadLayout.astro
@@ -0,0 +1,22 @@
+---
+const { title } = Astro.props as Props;
+---
+
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width" />
+ <title>{title}</title>
+ </head>
+ <body>
+ <div style="max-width: 70%;">
+ <slot />
+ </div>
+ </body>
+</html>
+
+<style>
+ html {
+ font-family: sans-serif;
+ }
+</style>