From 4ba339984d239180a526a5ae8ffbb558f1b5642a Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 12 Sep 2024 13:11:16 +0000 Subject: Updated the main page and page structures --- src/pages/blog/[...slug].astro | 34 +++++++++++++++++++++------------- src/pages/index.astro | 13 ++++--------- 2 files changed, 25 insertions(+), 22 deletions(-) (limited to 'src/pages') diff --git a/src/pages/blog/[...slug].astro b/src/pages/blog/[...slug].astro index f99ef21..4ecb1e1 100644 --- a/src/pages/blog/[...slug].astro +++ b/src/pages/blog/[...slug].astro @@ -23,17 +23,25 @@ const { Content, remarkPluginFrontmatter } = await post.render(); -
-

{post.data.title}

-

- - Posted - -  by {post.data.author} ‐ - {remarkPluginFrontmatter.minutesRead} - -

-
- - +
+
+

{post.data.title}

+

+ + Posted + +  by {post.data.author} ‐ + {remarkPluginFrontmatter.minutesRead} + +

+
+ +
+ +
+ +
+ +
+
diff --git a/src/pages/index.astro b/src/pages/index.astro index c4f5577..4380bbc 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,18 +1,13 @@ --- import { getCollection } from "astro:content"; +import Element from "../components/PostElement.astro"; import Layout from "../layouts/PageLayout.astro"; const posts = await getCollection("blog"); --- - +
+ {posts.map((post) => )} +
-- cgit v1.2.3