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.title}

+

{post.data.description}

+ + +
+ +
+ +
+ +
+ + + + diff --git a/src/pages/leg.astro b/src/pages/leg.astro new file mode 100644 index 0000000..d30ab2f --- /dev/null +++ b/src/pages/leg.astro @@ -0,0 +1,20 @@ +--- +import Layout from "../layouts/Layout.astro"; +--- + + + Home + +

Maned Wolf Jumpscare

+

GwaGwa

+ +
+ + Two Maned wolfs having a disagreement +
+ + \ No newline at end of file diff --git a/src/pages/posts/[...slug].astro b/src/pages/posts/[...slug].astro index 0fb5a9f..29d7f5d 100644 --- a/src/pages/posts/[...slug].astro +++ b/src/pages/posts/[...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('posts') @@ -14,37 +15,8 @@ export async function getStaticPaths() { } const { post } = Astro.props; - -const { Content } = await post.render() --- - Back -

{post.data.title}

-

{post.data.description}

- -
- -
- -
+
- - diff --git a/src/pages/posts/index.astro b/src/pages/posts/index.astro index 3ebc076..d2ae27d 100644 --- a/src/pages/posts/index.astro +++ b/src/pages/posts/index.astro @@ -8,7 +8,8 @@ const posts = await getCollection('posts'); --- - Back + Home +

All Posts

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() --- - Back - -

{project.data.title}

-

{project.data.description}

- -
- -
- -
+
- diff --git a/src/pages/projects/index.astro b/src/pages/projects/index.astro index 317944b..a3f6ad4 100644 --- a/src/pages/projects/index.astro +++ b/src/pages/projects/index.astro @@ -8,7 +8,7 @@ const projects = await getCollection('projects'); --- - Back + Home

All Projects

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;