mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-07 23:16:52 +00:00
feature:
文章标题SEO
This commit is contained in:
@@ -6,10 +6,12 @@ import BlogPostListScroll from '@/components/BlogPostListScroll'
|
||||
import React from 'react'
|
||||
import CategoryList from '@/components/CategoryList'
|
||||
import { getNotionPageData } from '@/lib/notion/getNotionData'
|
||||
import { useGlobal } from '@/lib/global'
|
||||
|
||||
export default function Category ({ tags, allPosts, filteredPosts, category, categories }) {
|
||||
const { locale } = useGlobal()
|
||||
const meta = {
|
||||
title: `${BLOG.title} | ${category}`,
|
||||
title: `${category} | ${locale.COMMON.CATEGORY} | ${BLOG.title}`,
|
||||
description: BLOG.description,
|
||||
type: 'website'
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ import { faFolder, faThList } from '@fortawesome/free-solid-svg-icons'
|
||||
export default function Category ({ tags, allPosts, categories }) {
|
||||
const { locale } = useGlobal()
|
||||
const meta = {
|
||||
title: `${BLOG.title} | ${locale.COMMON.CATEGORY}`,
|
||||
title: `${locale.COMMON.CATEGORY} | ${BLOG.title}`,
|
||||
description: BLOG.description,
|
||||
type: 'website'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user