aboutsummaryrefslogtreecommitdiff
path: root/src/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'src/layouts')
-rw-r--r--src/layouts/BaseLayout.astro26
-rw-r--r--src/layouts/PostLayout.astro17
2 files changed, 24 insertions, 19 deletions
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro
index 2def353..5a73ac6 100644
--- a/src/layouts/BaseLayout.astro
+++ b/src/layouts/BaseLayout.astro
@@ -1,27 +1,15 @@
---
-import CanonicalURL from "../components/CanonicalURL.astro";
+import Head from "../components/Head.astro";
+import Header from "../components/Header.astro";
---
<html>
- <head>
- <!-- Meta tags -->
- <meta content="IE=edge" http-equiv="X-UA-Compatible" />
- <meta content="text/html; charset=utf-8" http-equiv="content-type" />
- <meta content="width=device-width, initial-scale=1" name="viewport" />
- <meta content="index, follow" name="robots" />
-
- <!-- Title / Description -->
- <meta content="Description" name="description" />
- <title>Title</title>
-
- <!-- RSS -->
- <link href="#" rel="alternate" title="RSS" type="application/atom+xml" />
-
- <!-- Canonical URL -->
- <CanonicalURL />
- </head>
+ <Head />
<body>
- <slot />
+ <Header />
+ <article>
+ <slot />
+ </article>
</body>
</html>
diff --git a/src/layouts/PostLayout.astro b/src/layouts/PostLayout.astro
index ed2c900..37bbe37 100644
--- a/src/layouts/PostLayout.astro
+++ b/src/layouts/PostLayout.astro
@@ -2,6 +2,23 @@
import BaseLayout from "../layouts/BaseLayout.astro";
---
+<style>
+ .header {
+ text-align: center;
+ }
+</style>
+
<BaseLayout>
+ <div class="header">
+ <h1>Title</h1>
+ <p>
+ <small>
+ Posted
+ <time datetime="#">#</time>
+ &nbsp;by&nbsp;Valentin Popov&nbsp;‐
+ <strong>1 min read</strong>
+ </small>
+ </p>
+ </div>
<slot />
</BaseLayout>