aboutsummaryrefslogtreecommitdiff
path: root/src/pages/Post.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/Post.tsx')
-rw-r--r--src/pages/Post.tsx19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/pages/Post.tsx b/src/pages/Post.tsx
index 5c0f0ca..67f8959 100644
--- a/src/pages/Post.tsx
+++ b/src/pages/Post.tsx
@@ -1,6 +1,4 @@
import { useParams, Link } from "react-router-dom";
-import CodeSnippet from "../components/CodeSnippet";
-import LinkWithIcon from "../components/LinkWithIcon";
import NotFoundPage from "./404Page";
interface PostFile {
@@ -29,7 +27,7 @@ export default function Post() {
return (
<article className="prose prose-zinc dark:prose-invert mx-auto px-4 py-10">
- <Link to="/blog" className="no-underline">
+ <Link to="/blog" className="no-underline hover:underline">
← Back
</Link>
@@ -46,20 +44,7 @@ export default function Post() {
{new Date(meta.date).toLocaleDateString("de-DE")}
</p>
- {/* The Markdown, already a React component */}
- <Content
- components={{
- code({ children }: any) {
- return (
- <CodeSnippet
- code={String(children).replace(/\n$/, "")}
- initialLines={5}
- />
- );
- },
- a: LinkWithIcon,
- }}
- />
+ <Content />
</article>
);
} \ No newline at end of file