Skip to content

Commit bd89b92

Browse files
committed
feat: add PostDetail page for viewing individual blog posts with dynamic content, metadata, and interactive elements.
1 parent 724bf4b commit bd89b92

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/PostDetail.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
```javascript
1+
22
import React, { useEffect, useState } from 'react'
33
import { useParams, Link, useNavigate } from 'react-router-dom'
44
import { useContent } from '../context/ContentContext'
@@ -66,7 +66,7 @@ const PostDetail = () => {
6666

6767
if (!post) return <div className="min-h-screen flex items-center justify-center text-slate-400">Loading...</div>
6868

69-
const readTimeDisplay = post.readTime || `${ Math.ceil((post.content_markdown?.length || 0) / 1000) + 1 } min read`
69+
const readTimeDisplay = post.readTime || `${Math.ceil((post.content_markdown?.length || 0) / 1000) + 1} min read`
7070

7171
return (
7272
<div className="min-h-screen bg-slate-950 pt-24 pb-20">

0 commit comments

Comments
 (0)