mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-04 15:10:23 +00:00
标题处理、标签页分页处理
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
import { getAllPosts, getAllTags } from '@/lib/notion'
|
||||
import IndexLayout from '@/layouts/IndexLayout'
|
||||
import BLOG from '@/blog.config'
|
||||
import PageLayout from '@/layouts/PageLayout'
|
||||
|
||||
export default function Tag ({ tags, posts, currentTag }) {
|
||||
return <IndexLayout tags={tags} posts={posts} currentTag={currentTag} />
|
||||
const meta = {
|
||||
title: `${BLOG.title} | ${currentTag}`,
|
||||
description: BLOG.description,
|
||||
type: 'website'
|
||||
}
|
||||
return <PageLayout tags={tags} posts={posts} currentTag={currentTag} meta={meta} />
|
||||
}
|
||||
|
||||
export async function getStaticProps ({ params }) {
|
||||
|
||||
Reference in New Issue
Block a user