From ce144849f3fcb6e3269f302c976ec873cba890f8 Mon Sep 17 00:00:00 2001 From: Martin Prokoph Date: Thu, 8 Feb 2024 21:50:07 +0100 Subject: [PATCH] More progress --- public/blog/blog-posts.json | 13 ++++--------- src/components/Header.astro | 3 --- src/components/VersionDropdown.astro | 20 ++++++++------------ src/js/modversion.js | 21 ++++++++++++++++----- src/pages/blog/[...page].astro | 9 ++++++--- src/pages/blog/[post].astro | 6 ++++-- 6 files changed, 38 insertions(+), 34 deletions(-) diff --git a/public/blog/blog-posts.json b/public/blog/blog-posts.json index e92f521..465bb01 100644 --- a/public/blog/blog-posts.json +++ b/public/blog/blog-posts.json @@ -1,14 +1,9 @@ [ { - "userId": 1, - "id": 1, + "userId": "Martin Prokoph", + "date": "08.02.2024", "title": "So... I have a new website now!", - "body": "After years of just having a lame and half broken, useless site, I proudly present my new website.\nIt is built using Astro to achieve blazing fast performance, eye candy and usefulness at the same time." - }, - { - "userId": 1, - "id": 2, - "title": "qui est esse", - "body": "est rerum tempore vitae\nsequi sint nihil reprehenderit dolor beatae ea dolores neque\nfugiat blanditiis voluptate porro vel nihil molestiae ut reiciendis\nqui aperiam non debitis possimus qui neque nisi nulla" + "body": "After years of just having a lame and half broken, useless site, I proudly present my new website.\nIt is built using Astro to achieve blazing fast performance, eye candy and usefulness at the same time.", + "img": "/social-preview-image.png" } ] \ No newline at end of file diff --git a/src/components/Header.astro b/src/components/Header.astro index 073a794..ebb62cc 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -16,9 +16,6 @@ import { Icon } from 'astro-icon/components'