aboutsummaryrefslogtreecommitdiff
path: root/src/layouts
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2024-09-05 00:16:37 +0300
committerValentin Popov <valentin@popov.link>2024-09-05 00:16:37 +0300
commit7eff3fde5720eb23449e2f8c8ea0b8218efe4dde (patch)
treefbaedd693902c1a6d56a005b28b189ef76fe23f4 /src/layouts
parentecf9a15e77509d344ab4ee02ae0dbf8a116021f1 (diff)
downloadpopov.link-7eff3fde5720eb23449e2f8c8ea0b8218efe4dde.tar.xz
popov.link-7eff3fde5720eb23449e2f8c8ea0b8218efe4dde.zip
Initial Astro project
Diffstat (limited to 'src/layouts')
-rw-r--r--src/layouts/BaseLayout.astro27
-rw-r--r--src/layouts/PageLayout.astro7
-rw-r--r--src/layouts/PostLayout.astro7
3 files changed, 41 insertions, 0 deletions
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro
new file mode 100644
index 0000000..c100dad
--- /dev/null
+++ b/src/layouts/BaseLayout.astro
@@ -0,0 +1,27 @@
+---
+
+---
+
+<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 -->
+ <link href="#" rel="canonical" />
+ </head>
+
+ <body>
+ <slot />
+ </body>
+</html>
diff --git a/src/layouts/PageLayout.astro b/src/layouts/PageLayout.astro
new file mode 100644
index 0000000..3730334
--- /dev/null
+++ b/src/layouts/PageLayout.astro
@@ -0,0 +1,7 @@
+---
+import BaseLayout from "./BaseLayout.astro";
+---
+
+<BaseLayout>
+ <slot />
+</BaseLayout>
diff --git a/src/layouts/PostLayout.astro b/src/layouts/PostLayout.astro
new file mode 100644
index 0000000..ed2c900
--- /dev/null
+++ b/src/layouts/PostLayout.astro
@@ -0,0 +1,7 @@
+---
+import BaseLayout from "../layouts/BaseLayout.astro";
+---
+
+<BaseLayout>
+ <slot />
+</BaseLayout>