diff --git a/public/leg.jpg b/public/leg.jpg new file mode 100644 index 0000000..e3f647c Binary files /dev/null and b/public/leg.jpg differ diff --git a/src/layouts/Markdown.astro b/src/layouts/Markdown.astro new file mode 100644 index 0000000..97703e8 --- /dev/null +++ b/src/layouts/Markdown.astro @@ -0,0 +1,62 @@ +--- +interface Props { + post: any, +} + +const { post } = Astro.props; + +const { Content } = await post.render(); +--- + +Home + +
{post.data.description}
+ + +GwaGwa
+ +{post.data.description}
- -Some regrettable, some not so bad...
@@ -35,7 +36,7 @@ const posts = await getCollection('posts'); padding: 0; } - #back { + #home { margin-bottom: 32px; } diff --git a/src/pages/projects/[...slug].astro b/src/pages/projects/[...slug].astro index c6829f9..2d8d836 100644 --- a/src/pages/projects/[...slug].astro +++ b/src/pages/projects/[...slug].astro @@ -2,6 +2,7 @@ import { getCollection } from 'astro:content'; import Layout from "../../layouts/Layout.astro"; +import Markdown from "../../layouts/Markdown.astro"; export async function getStaticPaths() { const collection = await getCollection('projects') @@ -14,38 +15,9 @@ export async function getStaticPaths() { } const { project } = Astro.props; - -const { Content } = await project.render() ---{project.data.description}
- -Too many, so many
@@ -35,7 +35,7 @@ const projects = await getCollection('projects'); padding: 0; } - #back { + #home { margin-bottom: 32px; } diff --git a/src/styles/_main.scss b/src/styles/_main.scss index b5c1728..1178877 100644 --- a/src/styles/_main.scss +++ b/src/styles/_main.scss @@ -5,6 +5,8 @@ main { width: 100%; max-width: 800px; + display: flex; + flex-direction: column; flex-grow: 1; border-top-left-radius: $radius;