标题处理、标签页分页处理

This commit is contained in:
tangly1024
2021-10-16 15:26:09 +08:00
parent bca507029c
commit 3d70843441
12 changed files with 205 additions and 209 deletions

View File

@@ -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 }) {