Skip to content

Commit

Permalink
Merge branch 'main' into new
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeafter619 authored Oct 22, 2023
2 parents 0bd9d71 + ffdf292 commit 6048e83
Show file tree
Hide file tree
Showing 14 changed files with 168 additions and 107 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pushUrl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ jobs:
echo "请前往 Github Action Secrets 配置 URL:"
echo "详情参见: 'https://www.ghlcode.cn/fe032806-5362-4d82-b746-a0b26ce8b9d9'"
fi
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<hr/>

一个使用 NextJS + Notion API 实现的,部署在 Vercel 上的静态博客系统。为Notion和所有创作者设计
一个使用 NextJS + Notion API 实现的,部署在 Vercel 上的静态博客系统。为Notion和所有创作者设计


## 预览效果
Expand Down
116 changes: 60 additions & 56 deletions blog.config.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion components/CommonScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ const CommonScript = () => {
</>)}

{/* 引入音乐播放 */}
{JSON.parse(BLOG.MUSIC_PLAYER) && <script async src={BLOG.MUSIC_PLAYER_CDN_URL} />}
{JSON.parse(BLOG.MUSIC_PLAYER) && <script async src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/aplayer/1.10.1/APlayer.min.js" />}

{JSON.parse(BLOG.MUSIC_PLAYER) && JSON.parse(BLOG.MUSIC_PLAYER_METING) && <script async src="https://cdnjs.cloudflare.com/ajax/libs/meting/2.0.1/Meting.min.js" />}
</>)
}
Expand Down
55 changes: 52 additions & 3 deletions components/WalineComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,69 @@ const WalineComponent = (props) => {
waline.update(props)
}
}
const locale = {
nick: '昵称',
nickError: '昵称不能少于3个字符哦...',
mail: '邮箱',
mailError: '请填写正确的邮件地址',
link: '网址',
optional: '可选',
placeholder: '来叭叭,信息都不留也行哈~\n如果留下邮箱的话,被回复时会有📧通知~',
sofa: '来发评论吧~',
submit: '提交~',
like: '喜欢~',
cancelLike: '取消喜欢',
reply: '回复~',
cancelReply: '取消回复',
comment: '评论~',
refresh: '刷新',
more: '加载更多...',
preview: '预览',
emoji: '表情',
uploadImage: '上传图片',
seconds: '秒前',
minutes: '分钟前',
hours: '小时前',
days: '天前',
now: '刚刚',
uploading: '正在上传',
login: '登录',
logout: '退出',
admin: '博主同志',
sticky: '置顶',
word: '字',
wordHint: '评论字数应在 $0 到 $1 字之间!\n当前字数:$2',
anonymous: '匿名同志',
gif: '表情包',
profile: '个人资料',
approved: '通过',
waiting: '待审核',
spam: '垃圾',
unsticky: '取消置顶',
oldest: '按倒序',
latest: '按正序',
hottest: '按热度',
reactionTitle: 'hi,觉得这篇文章咋样?选一个叭~'
}

React.useEffect(() => {
if (!waline) {
waline = init({
...props,
el: containerRef.current,
locale,
serverURL: BLOG.COMMENT_WALINE_SERVER_URL,
lang: BLOG.lang,
reaction: true,
dark: 'html.dark',
emoji: [
'//npm.elemecdn.com/@waline/[email protected]/tieba',
'//npm.elemecdn.com/@waline/[email protected]/weibo',
'//npm.elemecdn.com/@waline/[email protected]/bilibili'
'//npm.elemecdn.com/[email protected]/Sticker-100',
'//npm.elemecdn.com/@waline/[email protected]/qq',
'//npm.elemecdn.com/@waline/[email protected]/tieba',
'//npm.elemecdn.com/@waline/[email protected]/weibo',
'//npm.elemecdn.com/@waline/[email protected]/bilibili',
'//file.66619.eu.org/beluga-emoji',
'//file.66619.eu.org/ikun-emoji'
]
})
}
Expand Down
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,13 @@
"bugs": {
"url": "https://github.com/tangly/NotionNext/issues",
"email": "[email protected]"
},
"rules": {
"generator-star-spacing": "off",
"no-debugger": "off",
"no-tabs": "off",
"no-unused-vars": "off",
"no-console": "off",
"no-irregular-whitespace": "off"
}
}
Binary file modified public/favicon.ico
Binary file not shown.
7 changes: 2 additions & 5 deletions themes/fukasawa/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@ const CONFIG = {

POST_LIST_COVER: true, // 文章列表显示图片封面
POST_LIST_COVER_FORCE: false, // 即使没有封面也将站点背景图设置为封面
POST_LIST_PREVIEW: false, // 显示文章预览
POST_LIST_PREVIEW: true, // 显示文章预览

// 菜单
MENU_CATEGORY: true, // 显示分类
MENU_TAG: true, // 显示标签
MENU_ARCHIVE: true, // 显示归档
MENU_SEARCH: false, // 显示搜索

SIDEBAR_COLLAPSE_BUTTON: true, // 侧边栏折叠按钮
SIDEBAR_COLLAPSE_SATUS_DEFAULT: false // 侧边栏默认折叠收起
MENU_SEARCH: true // 显示搜索

}
export default CONFIG
1 change: 0 additions & 1 deletion themes/heo/components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const Footer = ({ title }) => {
<div id='footer-bottom-left'>
NotionNext {BLOG.VERSION} <i className='fas fa-copyright' /> {`${copyrightDate}`} <i className='mx-1 animate-pulse fas fa-heart' /> <a href={BLOG.LINK} className='underline font-bold dark:text-gray-300 '>{BLOG.AUTHOR}</a>.
</div>

<div id='footer-bottom-right'>
{BLOG.BEI_AN && <><i className='fas fa-shield-alt' /> <a href='https://beian.miit.gov.cn/' className='mr-2'>{BLOG.BEI_AN}</a></>}

Expand Down
44 changes: 23 additions & 21 deletions themes/heo/config.js
Original file line number Diff line number Diff line change
@@ -1,42 +1,44 @@
const CONFIG = {
HOME_BANNER_ENABLE: true,

SITE_CREATE_TIME: '2021-09-21', // 建站日期,用于计算网站运行的第几天
SITE_CREATE_TIME: '2020-08-21', // 建站日期,用于计算网站运行的第几天

// 首页顶部通知条滚动内容,如不需要可以留空 []
NOTICE_BAR: [
{ title: '欢迎来到我的博客', url: 'https://blog.tangly1024.com' },
{ title: '访问文档中心获取更多帮助', url: 'https://docs.tangly1024.com' }
{ title: '【✨】欢迎来到我的博客', url: 'https://66619.eu.org' },
{ title: '【📌最近更新】关于Blind-Helper的一切', url: '/article/blind-helper-everything' },
{ title: '【📝留言板】我好想看到有小可爱给我留言,戳我直达💖~', url: '/message' },
{ title: '【🚇开往】开往下一站,戳我直达~', url: 'https://www.travellings.cn/go.html' }
],

// 英雄区(首页顶部大卡)
HERO_TITLE_1: '分享编程',
HERO_TITLE_1: '分享技术',
HERO_TITLE_2: '与思维认知',
HERO_TITLE_3: 'TANGLY1024.COM',
HERO_TITLE_4: '新版上线',
HERO_TITLE_5: 'NotionNext4.0 轻松定制主题',
HERO_TITLE_LINK: 'https://tangly1024.com',
HERO_TITLE_3: '𝟞𝟙𝟡’𝕤 𝔹𝕃𝕆𝔾',
HERO_TITLE_4: '📌最近更新',
HERO_TITLE_5: '⚙Blind-Helper的一切',
HERO_TITLE_LINK: 'https://66619.eu.org/article/blind-helper-everything',

// 英雄区显示三个置顶分类
HERO_CATEGORY_1: { title: '必看精选', url: '/tag/必看精选' },
HERO_CATEGORY_2: { title: '热门文章', url: '/tag/热门文章' },
HERO_CATEGORY_3: { title: '实用教程', url: '/tag/实用教程' },
HERO_CATEGORY_1: { title: '🤓学习思考', url: '/category/学习思考' },
HERO_CATEGORY_2: { title: '😎技术分享', url: '/category/技术分享' },
HERO_CATEGORY_3: { title: '👀班级相关', url: '/category/班级相关' },

// 英雄区右侧推荐文章标签, 例如 [推荐] , 最多六篇文章; 若留空白'',则推荐最近更新文章
HERO_RECOMMEND_POST_TAG: '推荐',
HERO_RECOMMEND_POST_TAG: '',
HERO_RECOMMEND_POST_SORT_BY_UPDATE_TIME: false, // 推荐文章排序,为`true`时将强制按最后修改时间倒序

// 右侧个人资料卡牌欢迎语,点击可自动切换
INFOCARD_GREETINGS: [
'你好!我是',
'🔍 分享与热心帮助',
'🤝 专修交互与设计',
'🙋‍♂️ 你好!我是@619',
'🔍 热心分享与帮助',
'🤝 专修网络与安全',
'🏃 脚踏实地行动派',
'🏠 智能家居小能手',
'🤖️ 数码科技爱好者',
'🧱 团队小组发动机'
],
INFO_CARD_URL: 'https://github.com/tangly1024/NotionNext', // 个人资料底部按钮链接
INFO_CARD_URL: 'https://github.com/lifeafter619', // 个人资料底部按钮链接

// 用户技能图标
GROUP_ICONS: [
Expand Down Expand Up @@ -99,10 +101,10 @@ const CONFIG = {
],

SOCIAL_CARD: true, // 是否显示右侧,点击加入社群按钮
SOCIAL_CARD_TITLE_1: '交流频道',
SOCIAL_CARD_TITLE_2: '加入我们的社群讨论分享',
SOCIAL_CARD_TITLE_3: '点击加入社群',
SOCIAL_CARD_URL: 'https://docs.tangly1024.com/article/how-to-question',
SOCIAL_CARD_TITLE_1: '想找我玩?',
SOCIAL_CARD_TITLE_2: '直接来本站留言板找我玩叭~',
SOCIAL_CARD_TITLE_3: '戳我直达💖~',
SOCIAL_CARD_URL: '/message',

// ***** 以下配置无效,只是预留开发 ****
// 菜单配置
Expand All @@ -113,7 +115,7 @@ const CONFIG = {
MENU_SEARCH: true, // 显示搜索

POST_LIST_COVER: true, // 列表显示文章封面
POST_LIST_COVER_HOVER_ENLARGE: false, // 列表鼠标悬停放大
POST_LIST_COVER_HOVER_ENLARGE: true, // 列表鼠标悬停放大

POST_LIST_COVER_DEFAULT: true, // 封面为空时用站点背景做默认封面
POST_LIST_SUMMARY: true, // 文章摘要
Expand Down
3 changes: 2 additions & 1 deletion themes/hexo/components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ const Footer = ({ title }) => {
<span className='pl-2 hidden busuanzi_container_site_uv'>
<i className='fas fa-users'/> <span className='px-1 busuanzi_value_site_uv'> </span> </span>
<h1 className='text-xs pt-4 text-light-400 dark:text-gray-400'>{title} {BLOG.BIO && <>|</>} {BLOG.BIO}</h1>
<a href="https://icp.gov.moe/?keyword=20225199" target="_blank">萌ICP备20225199号</a>
<br />
<p className='text-xs pt-2 text-light-500 dark:text-gray-500'>Powered by <a href='https://github.com/tangly1024/NotionNext' className='dark:text-gray-300'>NotionNext {BLOG.VERSION}</a>.</p></span><br/>

</footer>
)
}
Expand Down
2 changes: 1 addition & 1 deletion themes/medium/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const CONFIG = {
MENU_SEARCH: true, // 显示搜索

// Widget
WIDGET_REVOLVER_MAPS: process.env.NEXT_PUBLIC_WIDGET_REVOLVER_MAPS || 'false', // 地图插件
WIDGET_REVOLVER_MAPS: process.env.NEXT_PUBLIC_WIDGET_REVOLVER_MAPS || 'true', // 地图插件
WIDGET_TO_TOP: true // 跳回顶部
}
export default CONFIG
27 changes: 13 additions & 14 deletions themes/next/components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,19 @@ const Footer = ({ title }) => {
<span>
<DarkModeButton />

<i className='fas fa-copyright' /> {`${copyrightDate}`} <span className='mx-1 animate-pulse'><i className='fas fa-heart' /></span> <a href={BLOG.LINK} className='underline font-bold '>{BLOG.AUTHOR}</a>.<br />

{BLOG.BEI_AN && <><i className='fas fa-shield-alt' /> <a href='https://beian.miit.gov.cn/' className='mr-2'>{BLOG.BEI_AN}</a><br /></>}

<span className='hidden busuanzi_container_site_pv'>
<i className='fas fa-eye' /><span className='px-1 busuanzi_value_site_pv'> </span> </span>
<span className='pl-2 hidden busuanzi_container_site_uv'>
<i className='fas fa-users' /> <span className='px-1 busuanzi_value_site_uv'> </span> </span>
<br />
<h1>{title}</h1>
<span className='text-xs font-serif text-gray-500 dark:text-gray-300 '>Powered by <a href='https://github.com/tangly1024/NotionNext' className='underline '>NotionNext {BLOG.VERSION}</a>.</span>
</span>
</footer>
<span className='hidden busuanzi_container_site_pv'>
<i className='fas fa-eye' /><span className='px-1 busuanzi_value_site_pv'> </span> </span>
<span className='pl-2 hidden busuanzi_container_site_uv'>
<i className='fas fa-users' /> <span className='px-1 busuanzi_value_site_uv'> </span> </span>
<br />
<h1>{title}</h1>
<a href="https://ipw.cn/ipv6webcheck/?site=66619.eu.org" title="本站支持IPv6访问" target='_blank'>本站支持IPv6访问</a>
<br />
<a href="https://icp.gov.moe/?keyword=20225199" target="_blank">萌ICP备20225199号</a>
<br />
<span className='text-xs font-serif text-gray-500 dark:text-gray-300 '>Proudly powered by <a href='https://github.com/tangly1024/NotionNext' className='underline '>NotionNext {BLOG.VERSION}</a>.</span>
</span>
</footer>
)
}

export default Footer
5 changes: 3 additions & 2 deletions themes/next/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const CONFIG = {

HOME_BANNER: true, // 首页是否显示大图及标语 [true,false]
HOME_BANNER_Strings: ['Hi,我是一个程序员', 'Hi,我是一个打工人', 'Hi,我是一个干饭人', '欢迎来到我的博客🎉'], // 首页大图标语文字
HOME_BANNER_Strings: ['Hi,my friends!🎉', 'Hi,我是一个程序员', 'Hi,我是一个干饭人', '欢迎来到我的博客🎉'], // 首页大图标语文字

NAV_TYPE: 'normal', // ['fixed','autoCollapse','normal'] 分别是固定屏幕顶部并始终显示、固定屏幕顶部且滚动时隐藏,不固定屏幕顶部

Expand All @@ -26,10 +26,11 @@ const CONFIG = {
MENU_SEARCH: true, // 显示搜索

WIDGET_TO_TOP: true, // 是否显示回顶
WIDGET_TO_BOTTOM: false, // 显示回底
WIDGET_TO_BOTTOM: true, // 显示回底
WIDGET_DARK_MODE: false, // 显示日间/夜间模式切换
WIDGET_TOC: true, // 移动端显示悬浮目录

ARTICLE_SHARE: process.env.NEXT_PUBLIC_ARTICLE_SHARE || true, // 文章分享功能
ARTICLE_RELATE_POSTS: true, // 相关文章推荐
ARTICLE_COPYRIGHT: true, // 文章版权声明
ARTICLE_INFO: true // 显示文章信息
Expand Down

0 comments on commit 6048e83

Please sign in to comment.