refactor: improve content json importing
This commit is contained in:
parent
a3c0990804
commit
36b1ecd8ec
10 changed files with 43 additions and 28 deletions
|
@ -1,10 +1,10 @@
|
|||
"use client"
|
||||
|
||||
import contentMap from "@developomp-site/content/exports/contentMap"
|
||||
import { type ReactNode, useEffect, useState } from "react"
|
||||
|
||||
import PostCard from "@/components/PostCard"
|
||||
import ShowMoreButton from "@/components/ShowMoreButton"
|
||||
import contentMap from "@/contentMap"
|
||||
|
||||
const totalPosts = Object.keys(contentMap.posts).length
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue