mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-07 23:16:52 +00:00
starter 完善
This commit is contained in:
@@ -2,11 +2,12 @@
|
||||
import { siteConfig } from '@/lib/config'
|
||||
import CONFIG from '../config'
|
||||
|
||||
export const Blog = (props) => {
|
||||
const count = siteConfig('STARTER_BLOG_COUNT', 3, CONFIG)
|
||||
const posts = props?.allNavPages
|
||||
? props.allNavPages.slice(0, count)
|
||||
: []
|
||||
/**
|
||||
* 博文列表
|
||||
* @param {*} param0
|
||||
* @returns
|
||||
*/
|
||||
export const Blog = ({ posts }) => {
|
||||
return <>
|
||||
{/* <!-- ====== Blog Section Start --> */}
|
||||
<section className="bg-white pb-10 pt-20 dark:bg-dark lg:pb-20 lg:pt-[120px]">
|
||||
|
||||
Reference in New Issue
Block a user