🖼️ added images support

- Should investigate how to resize the image from .md specs
This commit is contained in:
RJ
2025-11-21 16:15:15 +02:00
parent 2580858ee8
commit a2bd055879
26 changed files with 871 additions and 274 deletions

View File

@@ -20,7 +20,7 @@ export async function generateMetadata({
}): Promise<Metadata> {
const { slug } = await params
const slugPath = slug.join('/')
const post = getPostBySlug(slugPath)
const post = await getPostBySlug(slugPath)
if (!post) {
return { title: 'Articol negăsit' }
@@ -68,7 +68,7 @@ function extractHeadings(content: string) {
export default async function BlogPostPage({ params }: { params: Promise<{ slug: string[] }> }) {
const { slug } = await params
const slugPath = slug.join('/')
const post = getPostBySlug(slugPath)
const post = await getPostBySlug(slugPath)
if (!post) {
notFound()