mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-06 23:16:52 +00:00
完善配置说明
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
const BLOG = {
|
const BLOG = {
|
||||||
title: '小唐笔记',
|
title: '小唐笔记', // 站点标题
|
||||||
author: 'tangly1024',
|
description: '分享编程技术与记录生活', // 站点描述
|
||||||
bio: '一个普通的干饭人🍚', // Introduce Yourself
|
author: 'tangly1024', // 作者
|
||||||
email: 'tlyong1992@hotmail.com',
|
bio: '一个普通的干饭人🍚', // 作者简介
|
||||||
link: 'https://tangly1024.com',
|
email: 'tlyong1992@hotmail.com', // 联系邮箱
|
||||||
description: '分享编程技术与记录生活',
|
link: 'https://tangly1024.com', // 网站地址
|
||||||
keywords: ['Notion', '写作', '博客'],
|
keywords: ['Notion', '写作', '博客'], // 网站关键词
|
||||||
home: { // 首页
|
home: { // 首页
|
||||||
showHomeBanner: false, // 首页是否显示大图及标语 [true,false]
|
showHomeBanner: false, // 首页是否显示大图及标语 [true,false]
|
||||||
homeBannerStrings: ['Hi,我是一个程序员', 'Hi,我是一个打工人', 'Hi,我是一个干饭人', '欢迎来到我的博客🎉'], // 首页大图标语文字
|
homeBannerStrings: ['Hi,我是一个程序员', 'Hi,我是一个打工人', 'Hi,我是一个干饭人', '欢迎来到我的博客🎉'], // 首页大图标语文字
|
||||||
homeBannerImage: './bg_image.jpg' // 首图
|
homeBannerImage: './bg_image.jpg' // 背景图地址
|
||||||
},
|
},
|
||||||
lang: 'zh-CN', // ['zh-CN','en-US'] default lang => see /lib/lang.js for more.
|
lang: 'zh-CN', // ['zh-CN','en-US'] default lang => see /lib/lang.js for more.
|
||||||
notionPageId: process.env.NOTION_PAGE_ID || 'bee1fccfa3bd47a1a7be83cc71372d83', // Important page_id!!!
|
notionPageId: process.env.NOTION_PAGE_ID || 'bee1fccfa3bd47a1a7be83cc71372d83', // Important page_id!!!
|
||||||
@@ -24,49 +24,35 @@ const BLOG = {
|
|||||||
postsPerPage: 6, // post counts per page
|
postsPerPage: 6, // post counts per page
|
||||||
sortByDate: false,
|
sortByDate: false,
|
||||||
autoCollapsedNavBar: true, // the automatically collapsed navigation bar
|
autoCollapsedNavBar: true, // the automatically collapsed navigation bar
|
||||||
menu: { // menu config
|
menu: { // 菜单栏设置
|
||||||
showAbout: false,
|
showAbout: false, // 显示关于
|
||||||
showCategory: true,
|
showCategory: true, // 显示分类
|
||||||
showTag: true,
|
showTag: true, // 显示标签
|
||||||
showArchive: true,
|
showArchive: true, // 显示归档
|
||||||
showSearch: true
|
showSearch: true // 显示搜索
|
||||||
},
|
},
|
||||||
widget: {
|
widget: { // 挂件及组件设置
|
||||||
showPet: false, // 是否显示宠物挂件
|
showPet: false, // 是否显示宠物挂件
|
||||||
petLink: 'https://cdn.jsdelivr.net/npm/live2d-widget-model-wanko@1.0.5/assets/wanko.model.json', // 模型地址 @see https://github.com/xiazeyu/live2d-widget-models
|
petLink: 'https://cdn.jsdelivr.net/npm/live2d-widget-model-wanko@1.0.5/assets/wanko.model.json', // 挂件模型地址 @see https://github.com/xiazeyu/live2d-widget-models
|
||||||
showToTop: true,
|
showToTop: true, // 是否显示回顶
|
||||||
showToBottom: true,
|
showToBottom: true, // 显示回底
|
||||||
showDarkMode: true,
|
showDarkMode: true, // 显示日间/夜间模式切换
|
||||||
showToc: true,
|
showToc: true, // 移动端显示悬浮目录
|
||||||
showShareBar: false,
|
showShareBar: false, // 文章分享功能
|
||||||
showRelatePosts: false,
|
showRelatePosts: false, // 关联文章推荐
|
||||||
showCopyRight: false,
|
showCopyRight: false, // 显示版权声明
|
||||||
showLatestPost: false,
|
showLatestPost: false, // 右侧边栏显示最近更新
|
||||||
showCategoryList: false,
|
showCategoryList: false, // 右侧边栏显示文章分类列表
|
||||||
showTagList: false
|
showTagList: false // 右侧边栏显示标签分类列表
|
||||||
},
|
},
|
||||||
socialLink: { // 社交链接
|
socialLink: { // 社交链接,如不需要展示可以留空白,例如 weibo:''
|
||||||
weibo: 'https://weibo.com/tangly1024',
|
weibo: 'https://weibo.com/tangly1024',
|
||||||
twitter: 'https://twitter.com/troy1024_1',
|
twitter: 'https://twitter.com/troy1024_1',
|
||||||
github: 'https://github.com/tangly1024',
|
github: 'https://github.com/tangly1024',
|
||||||
telegram: 'https://t.me/tangly_1024'
|
telegram: 'https://t.me/tangly_1024'
|
||||||
},
|
},
|
||||||
analytics: {
|
comment: { // 评论插件,支持 gitalk, utterances, cusdis
|
||||||
provider: 'ga', // Currently we support Google Analytics and Ackee, please fill with 'ga' or 'ackee', leave it empty to disable it.
|
provider: '', // 不需要则留空白
|
||||||
ackeeConfig: {
|
|
||||||
tracker: '', // e.g 'https://ackee.tangly1024.net/tracker.js'
|
|
||||||
dataAckeeServer: '', // e.g https://ackee.tangly1024.net , don't end with a slash
|
|
||||||
domainId: '' // e.g '0e2257a8-54d4-4847-91a1-0311ea48cc7b'
|
|
||||||
},
|
|
||||||
gaConfig: {
|
|
||||||
measurementId: 'G-68EK0W049N' // e.g: G-XXXXXXXXXX
|
|
||||||
},
|
|
||||||
baiduAnalytics: 'f683ef76f06bb187cbed5546f6f28f28', // e.g only need xxxxx -> https://hm.baidu.com/hm.js?[xxxxx]
|
|
||||||
busuanzi: true, // 展示网站阅读量访问数 see http://busuanzi.ibruce.info/
|
|
||||||
cnzzAnalytics: '' // 站长统计id only need xxxxxxxx -> https://s9.cnzz.com/z_stat.php?id=[xxxxxxxx]&web_id=[xxxxxxx]
|
|
||||||
},
|
|
||||||
comment: { // support provider: gitalk, utterances, cusdis
|
|
||||||
provider: '', // leave it empty if you don't need any comment plugin
|
|
||||||
gitalkConfig: {
|
gitalkConfig: {
|
||||||
repo: 'NotionNext', // The repository of store comments
|
repo: 'NotionNext', // The repository of store comments
|
||||||
owner: 'tangly1024',
|
owner: 'tangly1024',
|
||||||
@@ -86,6 +72,21 @@ const BLOG = {
|
|||||||
DaoVoiceId: '', // DaoVoice http://dashboard.daovoice.io/get-started
|
DaoVoiceId: '', // DaoVoice http://dashboard.daovoice.io/get-started
|
||||||
TidioId: '' // https://www.tidio.com/
|
TidioId: '' // https://www.tidio.com/
|
||||||
},
|
},
|
||||||
|
// --- 高级设置
|
||||||
|
analytics: { // 文章访问量统计
|
||||||
|
busuanzi: true, // 展示网站阅读量、访问数 see http://busuanzi.ibruce.info/
|
||||||
|
provider: 'ga', // 支持 Google Analytics and Ackee, please fill with 'ga' or 'ackee', leave it empty to disable it.
|
||||||
|
baiduAnalytics: 'f683ef76f06bb187cbed5546f6f28f28', // e.g only need xxxxx -> https://hm.baidu.com/hm.js?[xxxxx]
|
||||||
|
cnzzAnalytics: '', // 站长统计id only need xxxxxxxx -> https://s9.cnzz.com/z_stat.php?id=[xxxxxxxx]&web_id=[xxxxxxx]
|
||||||
|
gaConfig: {
|
||||||
|
measurementId: 'G-68EK0W049N' // e.g: G-XXXXXXXXXX
|
||||||
|
},
|
||||||
|
ackeeConfig: {
|
||||||
|
tracker: '', // e.g 'https://ackee.tangly1024.net/tracker.js'
|
||||||
|
dataAckeeServer: '', // e.g https://ackee.tangly1024.net , don't end with a slash
|
||||||
|
domainId: '' // e.g '0e2257a8-54d4-4847-91a1-0311ea48cc7b'
|
||||||
|
}
|
||||||
|
},
|
||||||
seo: {
|
seo: {
|
||||||
googleSiteVerification: '' // Remove the value or replace it with your own google site verification code
|
googleSiteVerification: '' // Remove the value or replace it with your own google site verification code
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user