mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 15:09:22 +00:00
Merge pull request #217 from tangly1024/preview
bugfix - fukasawa等主题编译问题
This commit is contained in:
34
.github/ISSUE_TEMPLATE/bug_report.md
vendored
34
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -1,33 +1,33 @@
|
||||
---
|
||||
name: Bug report (Bug反馈)
|
||||
about: Create a report to help Nobelium get better.
|
||||
about: 报告一个软件的BUG来让NotionNext变得更好
|
||||
title: ''
|
||||
labels: bug
|
||||
assignees: tangly1024
|
||||
---
|
||||
|
||||
<!--
|
||||
!!! IMPORTANT !!!
|
||||
Please do not ignore this template. If you do, your issue will be closed.
|
||||
!!! 重要 !!!
|
||||
请遵守这个模板的格式填写,否则你的Issue将被关闭
|
||||
-->
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
**描述bug**
|
||||
简单说明bug的现象、相关的错误提示、日志等
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
**复现步骤**
|
||||
出现这个bug的操作步骤
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
**期望的正常结果**
|
||||
希望按这个步骤,正常操作结果是什么
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
**截图**
|
||||
相关的页面,应该用结果
|
||||
|
||||
**Platform:**
|
||||
**环境**
|
||||
|
||||
- OS: [e.g. iOS, Android, macOS]
|
||||
- Browser [e.g. chrome, safari, firefox]
|
||||
- Version [e.g. 22]
|
||||
- 操作系统: [例如. iOS, Android, macOS, windows]
|
||||
- 浏览器 [例如. chrome, safari, firefox]
|
||||
- 版本 [e.g. 22]
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
||||
**补充说明**
|
||||
与问题相关的其它说明
|
||||
23
.github/ISSUE_TEMPLATE/deployment-error.md
vendored
23
.github/ISSUE_TEMPLATE/deployment-error.md
vendored
@@ -1,7 +1,28 @@
|
||||
---
|
||||
name: Deployment error (部署错误)
|
||||
about: Do you need help to install NotionNext?
|
||||
about: 在安装部署NotionNext时需要什么帮助吗
|
||||
title: ''
|
||||
labels: deployment
|
||||
assignees: tangly1024
|
||||
---
|
||||
|
||||
|
||||
<!--
|
||||
!!! 重要 !!!
|
||||
请遵守这个模板的格式填写,否则你的Issue将被关闭
|
||||
-->
|
||||
|
||||
**描述遇到的问题**
|
||||
简单说明你遇到的问题,相关的日志、错误信息
|
||||
|
||||
**相应配置**
|
||||
相关的配置,例如notion_page_id;你的网站地址
|
||||
|
||||
**截图**
|
||||
相关的页面,应该用结果
|
||||
|
||||
**环境**
|
||||
|
||||
- 操作系统: [例如. iOS, Android, macOS, windows]
|
||||
- 浏览器 [例如. chrome, safari, firefox]
|
||||
- 版本 [e.g. 22]
|
||||
|
||||
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@@ -7,18 +7,18 @@ assignees: tangly1024
|
||||
---
|
||||
|
||||
<!--
|
||||
!!! IMPORTANT !!!
|
||||
Please do not ignore this template. If you do, your issue will be closed.
|
||||
!!! 重要 !!!
|
||||
请遵守这个模板的格式填写,否则你的Issue将被关闭
|
||||
-->
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
**为什么提出这个新的特性改动**
|
||||
简要说明此特性解决的问题,例如,『博客站点的读者互动性不够强,和读者无法建立紧密的联系...』
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
**描述一下你推荐的解决方案**
|
||||
简要说明你的解决方案建议,例如,『Giscus评论插件功能更加强大,用户只需留言既可在你的邮箱收到通知。。。』
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
**描述一下你考虑过的其它替代解决方案**
|
||||
简要说明你所有想过的有可能解决此问题的方案。
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
||||
**补充说明**
|
||||
补充与此特性相关的内容
|
||||
|
||||
@@ -8,8 +8,8 @@ const ArchiveIndex = props => {
|
||||
const ThemeComponents = ThemeMap[theme]
|
||||
const { siteInfo } = props
|
||||
const meta = {
|
||||
title: `${locale.NAV.ARCHIVE} | ${siteInfo.title}`,
|
||||
description: siteInfo.description,
|
||||
title: `${locale.NAV.ARCHIVE} | ${siteInfo?.title}`,
|
||||
description: siteInfo?.description,
|
||||
slug: 'archive',
|
||||
type: 'website'
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ export default function Category(props) {
|
||||
const { locale } = useGlobal()
|
||||
const { siteInfo } = props
|
||||
const meta = {
|
||||
title: `${locale.COMMON.CATEGORY} | ${siteInfo.title}`,
|
||||
description: siteInfo.description,
|
||||
title: `${locale.COMMON.CATEGORY} | ${siteInfo?.title}`,
|
||||
description: siteInfo?.description,
|
||||
slug: 'category',
|
||||
type: 'website'
|
||||
}
|
||||
|
||||
@@ -14,8 +14,8 @@ export async function getStaticProps() {
|
||||
const props = await getGlobalNotionData({ from, pageType: ['Post'] })
|
||||
const { allPosts, siteInfo } = props
|
||||
const meta = {
|
||||
title: `${siteInfo.title} | ${siteInfo.description}`,
|
||||
description: siteInfo.description,
|
||||
title: `${siteInfo?.title} | ${siteInfo?.description}`,
|
||||
description: siteInfo?.description,
|
||||
image: siteInfo.pageCover,
|
||||
slug: '',
|
||||
type: 'website'
|
||||
|
||||
@@ -12,8 +12,8 @@ const Page = props => {
|
||||
return <></>
|
||||
}
|
||||
const meta = {
|
||||
title: `${props.page} | Page | ${siteInfo.title}`,
|
||||
description: siteInfo.description,
|
||||
title: `${props.page} | Page | ${siteInfo?.title}`,
|
||||
description: siteInfo?.description,
|
||||
slug: 'page/' + props.page,
|
||||
type: 'website'
|
||||
}
|
||||
|
||||
@@ -23,9 +23,9 @@ const Search = props => {
|
||||
const { locale } = useGlobal()
|
||||
const meta = {
|
||||
title: `${searchKey || ''}${searchKey ? ' | ' : ''}${locale.NAV.SEARCH} | ${
|
||||
siteInfo.title
|
||||
siteInfo?.title
|
||||
}`,
|
||||
description: siteInfo.description,
|
||||
description: siteInfo?.description,
|
||||
slug: 'search',
|
||||
type: 'website'
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ const TagIndex = props => {
|
||||
const { locale } = useGlobal()
|
||||
const { siteInfo } = props
|
||||
const meta = {
|
||||
title: `${locale.COMMON.TAGS} | ${siteInfo.title}`,
|
||||
description: siteInfo.description,
|
||||
title: `${locale.COMMON.TAGS} | ${siteInfo?.title}`,
|
||||
description: siteInfo?.description,
|
||||
slug: 'tag',
|
||||
type: 'website'
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ export const Footer = (props) => {
|
||||
// <span className="px-1 busuanzi_value_site_uv"> </span>{' '}
|
||||
// </span>
|
||||
// <br />
|
||||
// <h1>{meta?.title || siteInfo.title}</h1>
|
||||
// <h1>{meta?.title || siteInfo?.title}</h1>
|
||||
// <span className='text-xs font-serif'>
|
||||
// Powered by{' '}
|
||||
// <a
|
||||
|
||||
@@ -25,7 +25,7 @@ function AsideLeft (props) {
|
||||
|
||||
<section className='flex flex-col dark:text-gray-300'>
|
||||
<hr className='w-12 my-8' />
|
||||
{ siteInfo.description }
|
||||
{ siteInfo?.description }
|
||||
</section>
|
||||
|
||||
{router.asPath !== '/tag' && <section className='flex flex-col'>
|
||||
|
||||
@@ -107,7 +107,7 @@ const Header = props => {
|
||||
}}
|
||||
>
|
||||
<div className="absolute flex flex-col h-full items-center justify-center w-full font-sans">
|
||||
<div className='text-4xl md:text-5xl text-white shadow-text'>{siteInfo.title}</div>
|
||||
<div className='text-4xl md:text-5xl text-white shadow-text'>{siteInfo?.title}</div>
|
||||
<div className='mt-2 h-12 items-center text-center shadow-text text-white text-lg'>
|
||||
<span id='typed'/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user