direct thought/story urls

This commit is contained in:
neutrino2211
2025-10-09 01:18:10 +01:00
parent 7e04d3091a
commit c5adea5672
2 changed files with 14 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
"use client";
import { useState } from "react";
import Link from "next/link";
import { Thought } from "@/data/creative";
import { formatReadingTime } from "@/utils/readingTime";
import Markdown from "react-markdown";
@@ -36,6 +37,12 @@ export default function ExpandableThought({ thought }: ExpandableThoughtProps) {
<p className="text-gray-600 italic mb-4">{thought.excerpt}</p>
<div className="flex gap-4 text-sm">
<Link
href={`/thoughts/${thought.id}`}
className="bg-teal-200 text-black px-3 py-1 border-2 border-black font-bold hover:bg-teal-300 transition-colors"
>
Read Full Thought
</Link>
<span
className={`${categoryColors[thought.category]} text-black px-3 py-1 border-2 border-black font-bold`}
>