文章标题SEO
This commit is contained in:
tangly1024
2021-12-24 16:35:53 +08:00
parent aa562b3403
commit 0756dedb5a
9 changed files with 14 additions and 9 deletions

View File

@@ -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'
}

View File

@@ -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'
}