mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-08 23:16:54 +00:00
部分配置siteConfig化
This commit is contained in:
@@ -4,6 +4,7 @@ import { useGlobal } from '@/lib/global'
|
||||
import BLOG from '@/blog.config'
|
||||
import { useRouter } from 'next/router'
|
||||
import { getLayoutByTheme } from '@/themes/theme'
|
||||
import { siteConfig } from '@/lib/config'
|
||||
|
||||
/**
|
||||
* 分类页
|
||||
@@ -19,9 +20,9 @@ export default function Category(props) {
|
||||
|
||||
const meta = {
|
||||
title: `${props.category} | ${locale.COMMON.CATEGORY} | ${
|
||||
siteInfo?.title || ''
|
||||
siteConfig('TITLE') || ''
|
||||
}`,
|
||||
description: siteInfo?.description,
|
||||
description: siteConfig('HOME_BANNER_IMAGE'),
|
||||
slug: 'category/' + props.category,
|
||||
image: siteInfo?.pageCover,
|
||||
type: 'website'
|
||||
|
||||
@@ -4,6 +4,7 @@ import { useGlobal } from '@/lib/global'
|
||||
import BLOG from '@/blog.config'
|
||||
import { useRouter } from 'next/router'
|
||||
import { getLayoutByTheme } from '@/themes/theme'
|
||||
import { siteConfig } from '@/lib/config'
|
||||
|
||||
/**
|
||||
* 分类页
|
||||
@@ -19,9 +20,9 @@ export default function Category(props) {
|
||||
|
||||
const meta = {
|
||||
title: `${props.category} | ${locale.COMMON.CATEGORY} | ${
|
||||
siteInfo?.title || ''
|
||||
siteConfig('TITLE') || ''
|
||||
}`,
|
||||
description: siteInfo?.description,
|
||||
description: siteConfig('HOME_BANNER_IMAGE'),
|
||||
slug: 'category/' + props.category,
|
||||
image: siteInfo?.pageCover,
|
||||
type: 'website'
|
||||
|
||||
@@ -4,6 +4,7 @@ import { useGlobal } from '@/lib/global'
|
||||
import BLOG from '@/blog.config'
|
||||
import { useRouter } from 'next/router'
|
||||
import { getLayoutByTheme } from '@/themes/theme'
|
||||
import { siteConfig } from '@/lib/config'
|
||||
|
||||
/**
|
||||
* 分类首页
|
||||
@@ -18,8 +19,8 @@ export default function Category(props) {
|
||||
const Layout = getLayoutByTheme(useRouter())
|
||||
|
||||
const meta = {
|
||||
title: `${locale.COMMON.CATEGORY} | ${siteInfo?.title}`,
|
||||
description: siteInfo?.description,
|
||||
title: `${locale.COMMON.CATEGORY} | ${siteConfig('TITLE')}`,
|
||||
description: siteConfig('HOME_BANNER_IMAGE'),
|
||||
image: siteInfo?.pageCover,
|
||||
slug: 'category',
|
||||
type: 'website'
|
||||
|
||||
Reference in New Issue
Block a user