From 79f5fcf9476e216627dc202876b74db07c62335e Mon Sep 17 00:00:00 2001 From: grassblock Date: Sun, 4 May 2025 12:19:54 +0800 Subject: [PATCH] chore: remove sample posts --- src/pages/post/[...slug].astro | 52 ++-------------------------------- 1 file changed, 3 insertions(+), 49 deletions(-) diff --git a/src/pages/post/[...slug].astro b/src/pages/post/[...slug].astro index 2826d2d..60f2b7c 100644 --- a/src/pages/post/[...slug].astro +++ b/src/pages/post/[...slug].astro @@ -12,66 +12,20 @@ export async function getStaticPaths() { const { entry } = Astro.props; const { Content } = await entry.render(); -// Sample content for demo purposes if no actual content collection is set up -const samplePosts = { - 'terminal-setup': { - title: 'My Terminal Setup', - date: '2025-06-08', - content: ` -

Here's my current terminal setup:

- -

I've been using this setup for about a year now and it's been working great for me.

- ` - }, - 'minimalism': { - title: 'The Art of Minimalism', - date: '2025-06-05', - content: ` -

Minimalism isn't just about having less, it's about making room for what matters.

-

In code, this means writing clean, maintainable code that does exactly what it needs to do, nothing more, nothing less.

-

This terminal blog is an exercise in digital minimalism - stripping away the unnecessary to focus on what's important: the content.

- ` - }, - 'first-post': { - title: 'First Post', - date: '2025-06-01', - content: ` -

Hello world! This is the first post on my new terminal blog.

-

I built this blog using Astro and vanilla CSS/JS to create a terminal-like experience.

-

More posts coming soon...

- ` - } -}; - const slug = Astro.params.slug; --- - {entry ? ( - <>

{entry.data.title}

- - ) : ( - <> -

{samplePosts[slug]?.title}

- -
- - )} - -
+ +
← Back to posts
\ No newline at end of file