summaryrefslogtreecommitdiff
path: root/examples/blog/src/layouts/BlogPost.astro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blog/src/layouts/BlogPost.astro')
-rw-r--r--examples/blog/src/layouts/BlogPost.astro23
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/blog/src/layouts/BlogPost.astro b/examples/blog/src/layouts/BlogPost.astro
new file mode 100644
index 000000000..e6b644789
--- /dev/null
+++ b/examples/blog/src/layouts/BlogPost.astro
@@ -0,0 +1,23 @@
+---
+import { Markdown } from 'astro/components';
+import BaseHead from '../components/BaseHead.astro';
+import BlogHeader from '../components/BlogHeader.astro';
+import BlogPost from '../components/BlogPost.astro';
+
+const {content} = Astro.props;
+const {title, description, publishDate, author, heroImage, permalink} = content;
+---
+<html>
+ <head>
+ <BaseHead title={title} description={description} permalink={permalink} />
+ <link rel="stylesheet" href="/blog.css" />
+ </head>
+
+ <body>
+ <BlogHeader />
+ <BlogPost title={title} author={author} heroImage={heroImage} publishDate={publishDate}>
+ <slot />
+ </BlogPost>
+ </body>
+</html>
+