部分配置siteConfig化

This commit is contained in:
tangly1024.com
2023-11-01 18:40:00 +08:00
parent 70f6413fb2
commit 52495e0200
80 changed files with 293 additions and 200 deletions

View File

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

View File

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

View File

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