upgrade to astro 2.0

This commit is contained in:
2023-01-31 21:42:01 -05:00
parent d780cf085d
commit 4a8cb8bb32
30 changed files with 1291 additions and 1206 deletions
+18
View File
@@ -0,0 +1,18 @@
---
import Layout from "@layouts/Layout.astro";
const styles = {
img: {
display: "block",
maxWidth: "300px",
margin: "auto",
marginBottom: "26px",
borderRadius: "200px",
},
};
---
<Layout title="About">
<img src="/portrait.jpg" alt="me" style={styles.img} />
<slot />
</Layout>
-20
View File
@@ -1,20 +0,0 @@
---
import Layout from "@layouts/Layout.astro";
import BlogHeader from "@components/BlogHeader.astro";
const { title, pubDate } = Astro.props.frontmatter;
---
<Layout title={title}>
<BlogHeader title={title} date={pubDate} />
<article>
<slot />
</article>
</Layout>
<style is:global>
img {
display: block;
margin: auto;
}
</style>
+1 -1
View File
@@ -22,7 +22,7 @@ const title = Astro.props.frontmatter
<meta name="generator" content={Astro.generator} />
<meta
name="description"
content="A personal blog about life, gaming, tech, and whatever else I feel like writing about."
content="My personal blog about life, gaming, tech, and whatever else I feel like writing about."
/>
<title>{`ghall.blog - ${title}`}</title>
</head>