forked from tangly1024/NotionNext
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0bd9d71
commit 754a301
Showing
21 changed files
with
7,033 additions
and
3,683 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# 环境变量 @see https://www.nextjs.cn/docs/basic-features/environment-variables | ||
NEXT_PUBLIC_VERSION=4.0.16 | ||
NEXT_PUBLIC_VERSION=4.0.15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,6 @@ yarn-error.log* | |
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.env | ||
|
||
# vercel | ||
.vercel | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,32 +5,32 @@ const BLOG = { | |
process.env.NOTION_PAGE_ID || '02ab3b8678004aa69e9e415905ef32a5', | ||
PSEUDO_STATIC: process.env.NEXT_PUBLIC_PSEUDO_STATIC || false, // 伪静态路径,开启后所有文章URL都以 .html 结尾。 | ||
NEXT_REVALIDATE_SECOND: process.env.NEXT_PUBLIC_REVALIDATE_SECOND || 5, // 更新内容缓存间隔 单位(秒);即每个页面有5秒的纯静态期、此期间无论多少次访问都不会抓取notion数据;调大该值有助于节省Vercel资源、同时提升访问速率,但也会使文章更新有延迟。 | ||
THEME: process.env.NEXT_PUBLIC_THEME || 'hexo', // 当前主题,在themes文件夹下可找到所有支持的主题;主题名称就是文件夹名,例如 example,fukasawa,gitbook,heo,hexo,landing,matery,medium,next,nobelium,plog,simple | ||
THEME: process.env.NEXT_PUBLIC_THEME || 'gitbook', // heo当前主题,在themes文件夹下可找到所有支持的主题;主题名称就是文件夹名,例如 example,fukasawa,gitbook,heo,hexo,landing,matery,medium,next,nobelium,plog,simple | ||
THEME_SWITCH: process.env.NEXT_PUBLIC_THEME_SWITCH || false, // 是否显示切换主题按钮 | ||
LANG: process.env.NEXT_PUBLIC_LANG || 'zh-CN', // e.g 'zh-CN','en-US' see /lib/lang.js for more. | ||
SINCE: 2021, // e.g if leave this empty, current year will be used. | ||
SINCE: 2023, // e.g if leave this empty, current year will be used. | ||
APPEARANCE: process.env.NEXT_PUBLIC_APPEARANCE || 'light', // ['light', 'dark', 'auto'], // light 日间模式 , dark夜间模式, auto根据时间和主题自动夜间模式 | ||
APPEARANCE_DARK_TIME: process.env.NEXT_PUBLIC_APPEARANCE_DARK_TIME || [18, 6], // 夜间模式起至时间,false时关闭根据时间自动切换夜间模式 | ||
|
||
// 3.14.1版本后,欢迎语在此配置,英文逗号隔开 , 即可支持多个欢迎语打字效果。 | ||
GREETING_WORDS: process.env.NEXT_PUBLIC_GREETING_WORDS || 'Hi,我是一个程序员, Hi,我是一个打工人,Hi,我是一个干饭人,欢迎来到我的博客🎉', | ||
GREETING_WORDS: process.env.NEXT_PUBLIC_GREETING_WORDS || 'Hi,我爱分享的阿刚,欢迎来到我的博客🎉', | ||
|
||
CUSTOM_MENU: process.env.NEXT_PUBLIC_CUSTOM_MENU || false, // 支持Menu 类型,从3.12.0版本起,各主题将逐步支持灵活的二级菜单配置,替代了原来的Page类型,此配置是试验功能、默认关闭。 | ||
|
||
AUTHOR: process.env.NEXT_PUBLIC_AUTHOR || 'NotionNext', // 您的昵称 例如 tangly1024 | ||
BIO: process.env.NEXT_PUBLIC_BIO || '一个普通的干饭人🍚', // 作者简介 | ||
LINK: process.env.NEXT_PUBLIC_LINK || 'https://tangly1024.com', // 网站地址 | ||
KEYWORDS: process.env.NEXT_PUBLIC_KEYWORD || 'Notion, 博客', // 网站关键词 英文逗号隔开 | ||
AUTHOR: process.env.NEXT_PUBLIC_AUTHOR || 'Magic For Zotero', // 您的昵称 例如 tangly1024 | ||
BIO: process.env.NEXT_PUBLIC_BIO || '中文社区', // 作者简介 | ||
LINK: process.env.NEXT_PUBLIC_LINK || 'https://wiki.sharestuff.top/', // 网站地址 | ||
KEYWORDS: process.env.NEXT_PUBLIC_KEYWORD || 'Notion, Zotero, Magic', // 网站关键词 英文逗号隔开 | ||
|
||
// 社交链接,不需要可留空白,例如 CONTACT_WEIBO:'' | ||
CONTACT_EMAIL: process.env.NEXT_PUBLIC_CONTACT_EMAIL || '', // 邮箱地址 例如[email protected] | ||
CONTACT_EMAIL: process.env.NEXT_PUBLIC_CONTACT_EMAIL || '[email protected]', // 邮箱地址 例如[email protected] | ||
CONTACT_WEIBO: process.env.NEXT_PUBLIC_CONTACT_WEIBO || '', // 你的微博个人主页 | ||
CONTACT_TWITTER: process.env.NEXT_PUBLIC_CONTACT_TWITTER || '', // 你的twitter个人主页 | ||
CONTACT_GITHUB: process.env.NEXT_PUBLIC_CONTACT_GITHUB || '', // 你的github个人主页 例如 https://github.com/tangly1024 | ||
CONTACT_GITHUB: process.env.NEXT_PUBLIC_CONTACT_GITHUB || 'https://github.com/zotero-chinese', // 你的github个人主页 https://github.com/iShareStuff例如 https://github.com/tangly1024 | ||
CONTACT_TELEGRAM: process.env.NEXT_PUBLIC_CONTACT_TELEGRAM || '', // 你的telegram 地址 例如 https://t.me/tangly_1024 | ||
CONTACT_LINKEDIN: process.env.NEXT_PUBLIC_CONTACT_LINKEDIN || '', // 你的linkedIn 首页 | ||
CONTACT_INSTAGRAM: process.env.NEXT_PUBLIC_CONTACT_INSTAGRAM || '', // 您的instagram地址 | ||
CONTACT_BILIBILI: process.env.NEXT_PUBLIC_CONTACT_BILIBILI || '', // B站主页 | ||
CONTACT_BILIBILI: process.env.NEXT_PUBLIC_CONTACT_BILIBILI || 'https://space.bilibili.com/20435673', // B站主页 | ||
CONTACT_YOUTUBE: process.env.NEXT_PUBLIC_CONTACT_YOUTUBE || '', // Youtube主页 | ||
|
||
NOTION_HOST: process.env.NEXT_PUBLIC_NOTION_HOST || 'https://www.notion.so', // Notion域名,您可以选择用自己的域名进行反向代理,如果不懂得什么是反向代理,请勿修改此项 | ||
|
@@ -189,34 +189,74 @@ const BLOG = { | |
WIDGET_PET_LINK: | ||
process.env.NEXT_PUBLIC_WIDGET_PET_LINK || | ||
'https://cdn.jsdelivr.net/npm/[email protected]/assets/wanko.model.json', // 挂件模型地址 @see https://github.com/xiazeyu/live2d-widget-models | ||
WIDGET_PET_SWITCH_THEME: process.env.NEXT_PUBLIC_WIDGET_PET_SWITCH_THEME || true, // 点击宠物挂件切换博客主题 | ||
WIDGET_PET_SWITCH_THEME: process.env.NEXT_PUBLIC_WIDGET_PET_SWITCH_THEME || false, // 点击宠物挂件切换博客主题 | ||
|
||
// 音乐播放插件 | ||
MUSIC_PLAYER: process.env.NEXT_PUBLIC_MUSIC_PLAYER || false, // 是否使用音乐播放插件 | ||
MUSIC_PLAYER_VISIBLE: process.env.NEXT_PUBLIC_MUSIC_PLAYER_VISIBLE || true, // 是否在左下角显示播放和切换,如果使用播放器,打开自动播放再隐藏,就会以类似背景音乐的方式播放,无法取消和暂停 | ||
MUSIC_PLAYER_VISIBLE: process.env.NEXT_PUBLIC_MUSIC_PLAYER_VISIBLE || false, // 是否在左下角显示播放和切换,如果使用播放器,打开自动播放再隐藏,就会以类似背景音乐的方式播放,无法取消和暂停 | ||
MUSIC_PLAYER_AUTO_PLAY: | ||
process.env.NEXT_PUBLIC_MUSIC_PLAYER_AUTO_PLAY || true, // 是否自动播放,不过自动播放时常不生效(移动设备不支持自动播放) | ||
process.env.NEXT_PUBLIC_MUSIC_PLAYER_AUTO_PLAY || false, // 是否自动播放,不过自动播放时常不生效(移动设备不支持自动播放) | ||
MUSIC_PLAYER_LRC_TYPE: process.env.NEXT_PUBLIC_MUSIC_PLAYER_LRC_TYPE || '0', // 歌词显示类型,可选值: 3 | 1 | 0(0:禁用 lrc 歌词,1:lrc 格式的字符串,3:lrc 文件 url)(前提是有配置歌词路径,对 meting 无效) | ||
MUSIC_PLAYER_CDN_URL: | ||
process.env.NEXT_PUBLIC_MUSIC_PLAYER_CDN_URL || | ||
'https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/aplayer/1.10.1/APlayer.min.js', | ||
MUSIC_PLAYER_ORDER: process.env.NEXT_PUBLIC_MUSIC_PLAYER_ORDER || 'list', // 默认播放方式,顺序 list,随机 random | ||
MUSIC_PLAYER_AUDIO_LIST: [ | ||
// 示例音乐列表。除了以下配置外,还可配置歌词,具体配置项看此文档 https://aplayer.js.org/#/zh-Hans/ | ||
{ | ||
name: '风を共に舞う気持ち', | ||
artist: 'Falcom Sound Team jdk', | ||
url: 'https://music.163.com/song/media/outer/url?id=731419.mp3', | ||
cover: | ||
'https://p2.music.126.net/kn6ugISTonvqJh3LHLaPtQ==/599233837187278.jpg' | ||
}, | ||
{ | ||
name: '王都グランセル', | ||
artist: 'Falcom Sound Team jdk', | ||
url: 'https://music.163.com/song/media/outer/url?id=731355.mp3', | ||
cover: | ||
'https://p1.music.126.net/kn6ugISTonvqJh3LHLaPtQ==/599233837187278.jpg' | ||
} | ||
{ | ||
|
||
"name": "But U", | ||
"artist": "NINEONE#", | ||
"url": "http://music.163.com/song/media/outer/url?id=1459232593.mp3", | ||
"cover": "http://p4.music.126.net/li19i75jz6GGOT79IyAjYA==/109951165100592039.jpg?param=130y130" | ||
}, | ||
{ | ||
|
||
"name": "Manta", | ||
"artist": "刘柏辛Lexie", | ||
"url": "http://music.163.com/song/media/outer/url?id=1422989732.mp3", | ||
"cover": "http://p2.music.126.net/U1cEFusbO0qFyGBJleH5EA==/109951164546416875.jpg?param=130y130" | ||
}, | ||
{ | ||
|
||
"name": "Insomnia", | ||
"artist": "Daya", | ||
"url": "http://music.163.com/song/media/outer/url?id=1350638256.mp3", | ||
"cover": "http://p4.music.126.net/hto3WFCe7HOaUWaoWPFy_Q==/109951163910776663.jpg?param=130y130" | ||
}, | ||
{ | ||
"name": "Beautiful World", | ||
"artist": "Westlife", | ||
"url": "http://music.163.com/song/media/outer/url?id=1302236911.mp3", | ||
"cover": "https://p2.music.126.net/MEWr-THANcYy-1jvx334_Q==/109951163167214019.jpg?param=130y130" | ||
}, | ||
{ | ||
"name": "Move Your Body (Alan Walker Remix)", | ||
"artist": "Sia / Alan Walker", | ||
"url": "http://music.163.com/song/media/outer/url?id=436487129.mp3", | ||
"cover": "http://p2.music.126.net/9h_TA43qbHLTKwQrQzhLgQ==/18162832579997237.jpg?param=130y130" | ||
}, | ||
{ | ||
"name": "River Flows in You", | ||
"artist": "Yiruma", | ||
"url": "http://music.163.com/song/media/outer/url?id=26237342.mp3", | ||
"cover": "https://p2.music.126.net/8ZRSyI0ZN_4ah8uzsNd1mA==/2324367581169008.jpg?param=130y130" | ||
},{ | ||
"name": "Hello My Love", | ||
"artist": "Westlife", | ||
"url": "http://music.163.com/song/media/outer/url?id=1338728670.mp3", | ||
"cover": "https://p2.music.126.net/P2_COhPmlhsOpoj31DDLeA==/109951163785867445.jpg?param=130y130" | ||
},{ | ||
"name": "If I Let You Go", | ||
"artist": "Westlife", | ||
"url": "http://music.163.com/song/media/outer/url?id=27220254.mp3", | ||
"cover": "https://p2.music.126.net/TcOOoZSbISGT9AkhUtwOsg==/5644892697128237.jpg?param=130y130" | ||
},{ | ||
"name": "Señorita", | ||
"artist": "Shawn Mendes/Camila Cabello", | ||
"url": "http://music.163.com/song/media/outer/url?id=1373168742.mp3", | ||
"cover": "https://p2.music.126.net/eSrLKe5g3U8jX-lb629q6A==/109951164162885535.jpg?param=130y130" | ||
} | ||
], | ||
MUSIC_PLAYER_METING: process.env.NEXT_PUBLIC_MUSIC_PLAYER_METING || false, // 是否要开启 MetingJS,从平台获取歌单。会覆盖自定义的 MUSIC_PLAYER_AUDIO_LIST,更多配置信息:https://github.com/metowolf/MetingJS | ||
MUSIC_PLAYER_METING_SERVER: | ||
|
@@ -380,11 +420,11 @@ const BLOG = { | |
|
||
// 作废配置 | ||
AVATAR: process.env.NEXT_PUBLIC_AVATAR || '/avatar.svg', // 作者头像,被notion中的ICON覆盖。若无ICON则取public目录下的avatar.png | ||
TITLE: process.env.NEXT_PUBLIC_TITLE || 'NotionNext BLOG', // 站点标题 ,被notion中的页面标题覆盖;此处请勿留空白,否则服务器无法编译 | ||
TITLE: process.env.NEXT_PUBLIC_TITLE || 'Magic For Zotero', // 站点标题 ,被notion中的页面标题覆盖;此处请勿留空白,否则服务器无法编译 | ||
HOME_BANNER_IMAGE: | ||
process.env.NEXT_PUBLIC_HOME_BANNER_IMAGE || '/bg_image.jpg', // 首页背景大图, 会被notion中的封面图覆盖,若无封面图则会使用代码中的 /public/bg_image.jpg 文件 | ||
DESCRIPTION: | ||
process.env.NEXT_PUBLIC_DESCRIPTION || '这是一个由NotionNext生成的站点', // 站点描述,被notion中的页面描述覆盖 | ||
process.env.NEXT_PUBLIC_DESCRIPTION || '中文社区', // 站点描述,被notion中的页面描述覆盖 | ||
|
||
// 网站图片 | ||
IMG_LAZY_LOAD_PLACEHOLDER: process.env.NEXT_PUBLIC_IMG_LAZY_LOAD_PLACEHOLDER || 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==', // 懒加载占位图片地址,支持base64或url | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.