Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/app/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,16 @@ export default async function Blog({ params }: { params: Promise<{ slug: string
{post.metadata.publishedAt && formatDate(post.metadata.publishedAt)}
</Text>
<Heading variant="display-strong-m">{post.metadata.title}</Heading>
{post.metadata.subtitle && (
<Text
variant="body-default-l"
onBackground="neutral-weak"
align="center"
style={{ fontStyle: 'italic' }}
>
{post.metadata.subtitle}
</Text>
)}
</Column>
<Row marginBottom="32" horizontal="center">
<Row gap="16" vertical="center">
Expand Down
1 change: 1 addition & 0 deletions src/app/blog/posts/quick-start.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Quick start with Magic Portfolio"
subtitle: "A comprehensive guide to setting up your professional portfolio in minutes"
summary: "Magic Portfolio is a comprehensive, MDX-based, SEO-friendly, responsive portfolio template built with Once UI and Next.js."
image: "/images/gallery/horizontal-1.jpg"
publishedAt: "2025-04-23"
Expand Down
2 changes: 2 additions & 0 deletions src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type Team = {

type Metadata = {
title: string;
subtitle?: string;
publishedAt: string;
summary: string;
image?: string;
Expand Down Expand Up @@ -40,6 +41,7 @@ function readMDXFile(filePath: string) {

const metadata: Metadata = {
title: data.title || "",
subtitle: data.subtitle || "",
publishedAt: data.publishedAt,
summary: data.summary || "",
image: data.image || "",
Expand Down