summaryrefslogtreecommitdiff
path: root/src/layouts/PostLayout.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/layouts/PostLayout.astro')
-rw-r--r--src/layouts/PostLayout.astro18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/layouts/PostLayout.astro b/src/layouts/PostLayout.astro
new file mode 100644
index 0000000..31d0ac6
--- /dev/null
+++ b/src/layouts/PostLayout.astro
@@ -0,0 +1,18 @@
+---
+import BaseLayout from './BaseLayout.astro';
+import '../styles/post.css';
+
+interface Props {
+ title: string;
+}
+
+const { title } = Astro.props;
+---
+
+<BaseLayout title={title}>
+ <div class="org-article-title">
+ <h1>{title}</h1>
+ <a href="/posts/feed.xml">RSS Feed</a>
+ </div>
+ <slot />
+</BaseLayout>