Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit f698c26

Browse files
committed
👌 IMPROVE: Custom fields component usage
1 parent d62abb9 commit f698c26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pages/posts/[slug].js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import PostTitle from '@/components/post-title'
1313
import Head from 'next/head'
1414
import {CMS_NAME} from '@/lib/config'
1515
import Tags from '@/components/tags'
16+
import CustomFields from '@/components/custom-fields'
1617

1718
export default function Post({post, posts, preview}) {
1819
const router = useRouter()
@@ -48,6 +49,9 @@ export default function Post({post, posts, preview}) {
4849
categories={post.categories}
4950
/>
5051
<PostBody content={post.content} />
52+
<div>
53+
<CustomFields customFields={post.acf_whatiminto} />
54+
</div>
5155
<footer>
5256
{post.tags.edges.length > 0 && <Tags tags={post.tags} />}
5357
</footer>

0 commit comments

Comments
 (0)