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}

{new Date(entry.data.pubDate).toISOString().split('T')[0]}
- - ) : ( - <> -

{samplePosts[slug]?.title}

- {samplePosts[slug]?.date} -
- - )} - -
+ +
← Back to posts
\ No newline at end of file