From 589481749a1e5ea2427a683f02f0605216cb7b37 Mon Sep 17 00:00:00 2001 From: ysthakur <45539777+ysthakur@users.noreply.github.com> Date: Sun, 3 Nov 2024 22:01:27 -0500 Subject: [PATCH] Fix blog index page spacing+alignment --- src/components/BaseHead.astro | 7 +- src/components/header/mobile/Menu.astro | 2 +- src/consts.ts | 2 +- src/pages/blog/index.astro | 112 +++++++++++------------- 4 files changed, 52 insertions(+), 71 deletions(-) diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro index 60be760..db291ad 100644 --- a/src/components/BaseHead.astro +++ b/src/components/BaseHead.astro @@ -10,12 +10,10 @@ interface Props { image?: string; } -const canonicalURL = new URL(Astro.url.pathname, Astro.site); - const { title, description = SITE_DESCRIPTION, - image = "/blog-placeholder-1.jpg", + image = "/cyberlang-logo.png", } = Astro.props; --- @@ -79,9 +77,6 @@ const { crossorigin /> - - - {title ? `${title} | ${SITE_TITLE}` : SITE_TITLE} diff --git a/src/components/header/mobile/Menu.astro b/src/components/header/mobile/Menu.astro index d4513e0..906ce9e 100644 --- a/src/components/header/mobile/Menu.astro +++ b/src/components/header/mobile/Menu.astro @@ -12,7 +12,7 @@ import PageLink from "./PageLink.astro"; diff --git a/src/consts.ts b/src/consts.ts index bef58c3..417e5ff 100644 --- a/src/consts.ts +++ b/src/consts.ts @@ -2,7 +2,7 @@ // You can import this data from anywhere in your site by using the `import` keyword. export const SITE_TITLE = "CYB3RL4NG"; -export const SITE_DESCRIPTION = "Website for Team CYB3RL4NG"; +export const SITE_DESCRIPTION = "Team CYB3RL4NG's website"; export const CONTACT_NAME = "Terra Oh"; export const CONTACT_EMAIL = "toh12@terpmail.umd.edu"; diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index d0d010f..1a261f1 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -12,79 +12,65 @@ const posts = (await getCollection("blog")).sort(

Blog

- This is where we post about our progress and findings. - If you want updates, you can track our RSS feed. + This is where we post about our progress and findings. If you want updates, + you can track our RSS feed.

- +
+
+ { + posts.map((post) => ( +
+

+ {post.data.title} +

+ Posted +

{post.data.description}

+
+ )) + } +
+
-