mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
fix 站点描述字段错误
This commit is contained in:
18
.github/ISSUE_TEMPLATE/bug_report.md
vendored
18
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -12,23 +12,23 @@ assignees: tangly1024
|
||||
-->
|
||||
|
||||
**描述bug**
|
||||
简单说明bug的现象、相关的错误提示、日志等
|
||||
【此项必填】简单说明bug的现象、相关的错误提示、日志等
|
||||
|
||||
**复现步骤**
|
||||
出现这个bug的操作步骤
|
||||
【此项必填】出现这个bug的操作步骤
|
||||
|
||||
**期望的正常结果**
|
||||
希望按这个步骤,正常操作结果是什么
|
||||
【此项必填】希望按这个步骤,正常操作结果是什么
|
||||
|
||||
**截图**
|
||||
相关的页面,应该的结果
|
||||
【可选】相关的页面,应该的结果
|
||||
|
||||
**环境**
|
||||
|
||||
- 操作系统: [例如. iOS, Android, macOS, windows]
|
||||
- 浏览器 [例如. chrome, safari, firefox]
|
||||
- NotionNext版本 [e.g. 3.13.6]
|
||||
- 主题 [例如. hexo]
|
||||
- 【必填】NotionNext版本 [例如. 4.0.18]
|
||||
- 【必填】主题 [例如. hexo]
|
||||
- 【可选】操作系统: [例如. iOS, Android, macOS, windows]
|
||||
- 【可选】浏览器 [例如. chrome, safari, firefox]
|
||||
|
||||
**补充说明**
|
||||
与问题相关的其它说明
|
||||
【可选】与问题相关的其它说明
|
||||
@@ -31,7 +31,7 @@ const ArchiveIndex = props => {
|
||||
|
||||
const meta = {
|
||||
title: `${locale.NAV.ARCHIVE} | ${siteConfig('TITLE')}`,
|
||||
description: siteConfig('HOME_BANNER_IMAGE'),
|
||||
description: siteConfig('DESCRIPTION'),
|
||||
image: siteInfo?.pageCover,
|
||||
slug: 'archive',
|
||||
type: 'website'
|
||||
|
||||
@@ -22,7 +22,7 @@ export default function Category(props) {
|
||||
title: `${props.category} | ${locale.COMMON.CATEGORY} | ${
|
||||
siteConfig('TITLE') || ''
|
||||
}`,
|
||||
description: siteConfig('HOME_BANNER_IMAGE'),
|
||||
description: siteConfig('DESCRIPTION'),
|
||||
slug: 'category/' + props.category,
|
||||
image: siteInfo?.pageCover,
|
||||
type: 'website'
|
||||
|
||||
@@ -22,7 +22,7 @@ export default function Category(props) {
|
||||
title: `${props.category} | ${locale.COMMON.CATEGORY} | ${
|
||||
siteConfig('TITLE') || ''
|
||||
}`,
|
||||
description: siteConfig('HOME_BANNER_IMAGE'),
|
||||
description: siteConfig('DESCRIPTION'),
|
||||
slug: 'category/' + props.category,
|
||||
image: siteInfo?.pageCover,
|
||||
type: 'website'
|
||||
|
||||
@@ -20,7 +20,7 @@ export default function Category(props) {
|
||||
|
||||
const meta = {
|
||||
title: `${locale.COMMON.CATEGORY} | ${siteConfig('TITLE')}`,
|
||||
description: siteConfig('HOME_BANNER_IMAGE'),
|
||||
description: siteConfig('DESCRIPTION'),
|
||||
image: siteInfo?.pageCover,
|
||||
slug: 'category',
|
||||
type: 'website'
|
||||
|
||||
@@ -18,7 +18,7 @@ const Page = props => {
|
||||
|
||||
const meta = {
|
||||
title: `${props?.page} | Page | ${siteConfig('TITLE')}`,
|
||||
description: siteConfig('HOME_BANNER_IMAGE'),
|
||||
description: siteConfig('DESCRIPTION'),
|
||||
image: siteInfo?.pageCover,
|
||||
slug: 'page/' + props.page,
|
||||
type: 'website'
|
||||
|
||||
@@ -36,7 +36,7 @@ const Search = props => {
|
||||
|
||||
const meta = {
|
||||
title: `${keyword || ''}${keyword ? ' | ' : ''}${locale.NAV.SEARCH} | ${siteConfig('TITLE')}`,
|
||||
description: siteConfig('HOME_BANNER_IMAGE'),
|
||||
description: siteConfig('DESCRIPTION'),
|
||||
image: siteInfo?.pageCover,
|
||||
slug: 'search',
|
||||
type: 'website'
|
||||
|
||||
@@ -19,7 +19,7 @@ const Tag = props => {
|
||||
|
||||
const meta = {
|
||||
title: `${tag} | ${locale.COMMON.TAGS} | ${siteConfig('TITLE')}`,
|
||||
description: siteConfig('HOME_BANNER_IMAGE'),
|
||||
description: siteConfig('DESCRIPTION'),
|
||||
image: siteInfo?.pageCover,
|
||||
slug: 'tag/' + tag,
|
||||
type: 'website'
|
||||
|
||||
@@ -14,7 +14,7 @@ const Tag = props => {
|
||||
|
||||
const meta = {
|
||||
title: `${tag} | ${locale.COMMON.TAGS} | ${siteConfig('TITLE')}`,
|
||||
description: siteConfig('HOME_BANNER_IMAGE'),
|
||||
description: siteConfig('DESCRIPTION'),
|
||||
image: siteInfo?.pageCover,
|
||||
slug: 'tag/' + tag,
|
||||
type: 'website'
|
||||
|
||||
@@ -19,7 +19,7 @@ const TagIndex = props => {
|
||||
|
||||
const meta = {
|
||||
title: `${locale.COMMON.TAGS} | ${siteConfig('TITLE')}`,
|
||||
description: siteConfig('HOME_BANNER_IMAGE'),
|
||||
description: siteConfig('DESCRIPTION'),
|
||||
image: siteInfo?.pageCover,
|
||||
slug: 'tag',
|
||||
type: 'website'
|
||||
|
||||
@@ -18,7 +18,7 @@ const SideBar = (props) => {
|
||||
<div className='mx-5 pt-6 pb-2'>
|
||||
<LazyImage src={siteInfo?.icon} className='cursor-pointer rounded-full' width={80} alt={siteConfig('AUTHOR')} />
|
||||
<div className='text-white text-xl my-1'>{siteConfig('TITLE')}</div>
|
||||
<div className='text-xs my-1 text-gray-300'>{siteConfig('HOME_BANNER_IMAGE')}</div>
|
||||
<div className='text-xs my-1 text-gray-300'>{siteConfig('DESCRIPTION')}</div>
|
||||
</div>
|
||||
</div>
|
||||
<MenuListSide {...props} />
|
||||
|
||||
@@ -63,7 +63,7 @@ const Nav = props => {
|
||||
: (
|
||||
<p className="ml-2 font-medium text-gray-800 dark:text-gray-300 header-name whitespace-nowrap">
|
||||
{siteConfig('TITLE')}
|
||||
{/* ,{' '}<span className="font-normal">{siteConfig('HOME_BANNER_IMAGE')}</span> */}
|
||||
{/* ,{' '}<span className="font-normal">{siteConfig('DESCRIPTION')}</span> */}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@ import { siteConfig } from '@/lib/config'
|
||||
*/
|
||||
export const Title = (props) => {
|
||||
const { post } = props
|
||||
const title = post?.title || siteConfig('HOME_BANNER_IMAGE')
|
||||
const title = post?.title || siteConfig('DESCRIPTION')
|
||||
const description = post?.description || siteConfig('AUTHOR')
|
||||
|
||||
return <div className="text-center px-6 py-12 mb-6 bg-gray-100 dark:bg-hexo-black-gray dark:border-hexo-black-gray border-b">
|
||||
|
||||
@@ -30,8 +30,8 @@ export default function LogoBar(props) {
|
||||
)
|
||||
: (
|
||||
<p className="ml-2 font-medium text-gray-800 dark:text-gray-300 header-name">
|
||||
<Link href="/" aria-label={siteConfig('title')}> {siteConfig('TITLE')}</Link>
|
||||
{' '}<span className="font-normal text-sm text-gray-00 dark:text-gray-400">{siteConfig('HOME_BANNER_IMAGE')}</span>
|
||||
<Link href="/" aria-label={siteConfig('TITLE')}> {siteConfig('TITLE')}</Link>
|
||||
{' '}<span className="font-normal text-sm text-gray-00 dark:text-gray-400">{siteConfig('DESCRIPTION')}</span>
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@ import { siteConfig } from '@/lib/config'
|
||||
*/
|
||||
export const Title = (props) => {
|
||||
const { post } = props
|
||||
const title = post?.title || siteConfig('HOME_BANNER_IMAGE')
|
||||
const title = post?.title || siteConfig('DESCRIPTION')
|
||||
const description = post?.description || siteConfig('AUTHOR')
|
||||
|
||||
return <div className="text-center px-6 py-12 mb-6 bg-gray-100 dark:bg-hexo-black-gray dark:border-hexo-black-gray border-b">
|
||||
|
||||
@@ -32,7 +32,7 @@ export const Header = (props) => {
|
||||
<div className='flex justify-center'>
|
||||
<SocialButton />
|
||||
</div>
|
||||
<div className='text-xs mt-4 text-gray-500 dark:text-gray-300'>{siteConfig('HOME_BANNER_IMAGE')}</div>
|
||||
<div className='text-xs mt-4 text-gray-500 dark:text-gray-300'>{siteConfig('DESCRIPTION')}</div>
|
||||
</div>
|
||||
</header>
|
||||
)
|
||||
|
||||
@@ -7,7 +7,7 @@ import { siteConfig } from '@/lib/config'
|
||||
*/
|
||||
export const Title = (props) => {
|
||||
const { post } = props
|
||||
const title = post?.title || siteConfig('HOME_BANNER_IMAGE')
|
||||
const title = post?.title || siteConfig('DESCRIPTION')
|
||||
const description = post?.description || siteConfig('AUTHOR')
|
||||
|
||||
return <div className="text-center px-6 py-12 mb-6 bg-gray-100 dark:bg-hexo-black-gray dark:border-hexo-black-gray border-b">
|
||||
|
||||
Reference in New Issue
Block a user