Skip to content

Commit 56ffca1

Browse files
committed
贡献代码相关
1 parent 78c802d commit 56ffca1

20 files changed

+19
-795
lines changed

README.md

+12-8
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,9 @@
5050
|--|--|--|--|
5151
| <img src='./docs/theme-next.png' width='300'/> [预览NEXT](https://preview.tangly1024.com/?theme=next) | <img src='./docs/theme-medium.png' width='300'/> [预览MEDIUM](https://preview.tangly1024.com/?theme=medium) | <img src='./docs/theme-hexo.png' width='300'/> [预览HEXO](https://preview.tangly1024.com/?theme=hexo) | <img src='./docs/theme-fukasawa.png' width='300'/> [预览FUKASAWA](https://preview.tangly1024.com/?theme=fukasawa) |
5252

53+
*只需修改`blog.config.js`文件的`THEME`即可实现主题切换。* 没找到喜欢的主题?[贡献](/CONTRIBUTING.md)一个吧~
5354

5455

55-
*只需修改`blog.config.js`文件的`THEME`即可实现主题切换。*
56-
57-
## 更新日志
58-
请移步 [更新文档](https://docs.tangly1024.com/zh/changelog)查看
5956

6057
## 快速起步
6158

@@ -80,25 +77,32 @@ yarn run start # 本地启动NextJS服务
8077

8178
## 引用技术
8279

83-
- **框架**: Next.js
80+
- **框架**: [Next.js](https://nextjs.org)
8481
- **样式**: [Tailwind CSS](https://www.tailwindcss.cn/)`@tailwindcss/jit` compiler
8582
- **渲染**: [React-notion-x](https://github.com/NotionX/react-notion-x)
86-
- **评论**: Gitalk, Cusdis, Utterances
87-
- **图标**[fontawesome](https://fontawesome.com/v5.15/icons?d=gallery)
83+
- **评论**: [Giscus](https://giscus.app/zh-CN), [Gitalk](https://gitalk.github.io), [Cusdis](https://gitalk.github.io), [Utterances](https://utteranc.es)
84+
- **图标**[fontawesome v5.15](https://fontawesome.com/v5.15/icons?d=gallery)
85+
86+
## 更新日志
87+
请移步 [更新文档](https://docs.tangly1024.com/zh/changelog)查看
88+
8889

8990
## 致谢
9091
感谢Craig Hart发起的Nobelium项目
9192
<table><tr align="left">
9293
<td align="center"><a href="https://github.com/craigary" title="Craig Hart"><img src="https://avatars.githubusercontent.com/u/10571717" width="64px;"alt="Craig Hart"/></a><br/><a href="https://notion.so/cnotion" title="Craig Hart">Craig Hart</a></td>
9394
</tr></table>
9495

95-
## Contributors
96+
## 贡献者
9697

9798
<table><tr align="left">
9899
<td align="center"><a href="https://github.com/tangly1024"><img src="https://avatars.githubusercontent.com/u/15920488" width="64px;"alt="tangly1024"/><br/><sub><b>tangly1024</b></sub></a><br/><a href="https://github.com/tangly1024/NotionNext/commits?author=tangly1024" title="Owner" >🎫 🔧 🎨 🐛</a></td>
99100
<td align="center"><a href="https://github.com/uWayLu"><img src="https://avatars.githubusercontent.com/u/21689326" width="64px;" alt="uWayLu"/><br/><sub><b>uWayLu</b></sub></a><br/><a href="https://github.com/tangly1024/NotionNext/commits?author=uWayLu" title="yokinist" >🔧 🐛</a></td>
100101
</tr></table>
101102

103+
十分期待你的[贡献](/CONTRIBUTING.md),一起来完善这个项目~
104+
105+
102106
## License
103107

104108
The MIT License.

components/DebugPanel.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import BLOG from '@/blog.config'
22
import * as ThemeMap from '@/themes'
33
import { useState } from 'react'
44
import Select from './Select'
5-
import { ALL_THEME } from '@/lib/theme'
5+
import { ALL_THEME } from '@/themes'
66
import { useGlobal } from '@/lib/global'
77
/**
88
*

lib/global.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { generateLocaleDict, initLocale } from './lang'
22
import { createContext, useContext, useEffect, useState } from 'react'
33
import Router from 'next/router'
44
import BLOG from '@/blog.config'
5-
import { ALL_THEME, initDarkMode, initTheme, saveThemeToCookies } from '@/lib/theme'
5+
import { initDarkMode, initTheme, saveThemeToCookies } from '@/lib/theme'
6+
import { ALL_THEME } from '@/themes'
67

78
const GlobalContext = createContext()
89
let hasInit = false

lib/theme.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import cookie from 'react-cookies'
22
import BLOG from '@/blog.config'
33

4-
export const ALL_THEME = ['hexo', 'next', 'medium', 'fukasawa', 'empty']
54
/**
65
* 初始化主题
76
* @param isDarkMode

themes/empty/Layout404.js

-6
This file was deleted.

themes/empty/LayoutArchive.js

-69
This file was deleted.

themes/empty/LayoutBase.js

-135
This file was deleted.

themes/empty/LayoutCategory.js

-48
This file was deleted.

themes/empty/LayoutCategoryIndex.js

-25
This file was deleted.

0 commit comments

Comments
 (0)