Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pulljson #2989

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
26 changes: 13 additions & 13 deletions blog.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ const BLOG = {
// Important page_id!!!Duplicate Template from https://www.notion.so/tanghh/02ab3b8678004aa69e9e415905ef32a5
NOTION_PAGE_ID:
process.env.NOTION_PAGE_ID ||
'02ab3b8678004aa69e9e415905ef32a5,en:7c1d570661754c8fbc568e00a01fd70e',
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 || 'simple', // 当前主题,在themes文件夹下可找到所有支持的主题;主题名称就是文件夹名,例如 example,fukasawa,gitbook,heo,hexo,landing,matery,medium,next,nobelium,plog,simple
'14032d465c8c80728c06e92d941414a2',
PSEUDO_STATIC: process.env.NEXT_PUBLIC_PSEUDO_STATIC || true, // 伪静态路径,开启后所有文章URL都以 .html 结尾。
NEXT_REVALIDATE_SECOND: process.env.NEXT_PUBLIC_REVALIDATE_SECOND || 1, // 更新内容缓存间隔 单位(秒);即每个页面有5秒的纯静态期、此期间无论多少次访问都不会抓取notion数据;调大该值有助于节省Vercel资源、同时提升访问速率,但也会使文章更新有延迟。
THEME: process.env.NEXT_PUBLIC_THEME || 'magzine', // 当前主题,在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: process.env.NEXT_PUBLIC_SINCE || 2021, // e.g if leave this empty, current year will be used.
SINCE: process.env.NEXT_PUBLIC_SINCE || 2024, // 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时关闭根据时间自动切换夜间模式

Expand All @@ -20,13 +20,13 @@ const BLOG = {
// 3.14.1版本后,欢迎语在此配置,英文逗号隔开 , 即可支持多个欢迎语打字效果。
GREETING_WORDS:
process.env.NEXT_PUBLIC_GREETING_WORDS ||
'Hi,我是一个程序员, Hi,我是一个打工人,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', // 网站地址
AUTHOR: process.env.NEXT_PUBLIC_AUTHOR || 'Vigrid', // 您的昵称 例如 tangly1024
BIO: process.env.NEXT_PUBLIC_BIO || '欢迎来到“英灵殿”', // 作者简介
LINK: process.env.NEXT_PUBLIC_LINK || 'https://Vigrid.icu', // 网站地址
KEYWORDS: process.env.NEXT_PUBLIC_KEYWORD || 'Notion, 博客', // 网站关键词 英文逗号隔开

// 社交链接,不需要可留空白,例如 CONTACT_WEIBO:''
Expand Down Expand Up @@ -203,7 +203,7 @@ const BLOG = {
BACKGROUND_DARK: '#000000', // use hex value, don't forget '#'
SUB_PATH: '', // leave this empty unless you want to deploy in a folder

POST_SHARE_BAR_ENABLE: process.env.NEXT_PUBLIC_POST_SHARE_BAR || 'true', // 文章分享功能 ,将在底部显示一个分享条
POST_SHARE_BAR_ENABLE: process.env.NEXT_PUBLIC_POST_SHARE_BAR || 'false', // 文章分享功能 ,将在底部显示一个分享条
POSTS_SHARE_SERVICES:
process.env.NEXT_PUBLIC_POST_SHARE_SERVICES ||
'link,wechat,qq,weibo,email,facebook,twitter,telegram,messenger,line,reddit,whatsapp,linkedin', // 分享的服務,按顺序显示,逗号隔开
Expand Down Expand Up @@ -255,7 +255,7 @@ const BLOG = {
MOUSE_FOLLOW: process.env.NEXT_PUBLIC_MOUSE_FOLLOW || true, // 开关
// 这两个只有在鼠标跟随特效开启时才生效
// 鼠标类型 1:路劲散点 2:下降散点 3:上升散点 4:边缘向鼠标移动散点 5:跟踪转圈散点 6:路径线条 7:聚集散点 8:聚集网格 9:移动网格 10:上升粒子 11:转圈随机颜色粒子 12:圆锥放射跟随蓝色粒子
MOUSE_FOLLOW_EFFECT_TYPE: 11, // 1-12
MOUSE_FOLLOW_EFFECT_TYPE: 9, // 1-12
MOUSE_FOLLOW_EFFECT_COLOR: '#ef672a', // 鼠标点击特效颜色 #xxxxxx 或者 rgba(r,g,b,a)

// 樱花飘落特效
Expand All @@ -267,7 +267,7 @@ const BLOG = {
// 静态彩带特效
RIBBON: process.env.NEXT_PUBLIC_RIBBON || false, // 开关
// 星空雨特效 黑夜模式才会生效
STARRY_SKY: process.env.NEXT_PUBLIC_STARRY_SKY || false, // 开关
STARRY_SKY: process.env.NEXT_PUBLIC_STARRY_SKY || true, // 开关

// ********挂件组件相关********
// AI 文章摘要生成 @see https://docs_s.tianli0.top/
Expand Down Expand Up @@ -298,7 +298,7 @@ const BLOG = {
process.env.NEXT_PUBLIC_WIDGET_PET_SWITCH_THEME || true, // 点击宠物挂件切换博客主题

// 音乐播放插件
MUSIC_PLAYER: process.env.NEXT_PUBLIC_MUSIC_PLAYER || false, // 是否使用音乐播放插件
MUSIC_PLAYER: process.env.NEXT_PUBLIC_MUSIC_PLAYER || true, // 是否使用音乐播放插件
MUSIC_PLAYER_VISIBLE: process.env.NEXT_PUBLIC_MUSIC_PLAYER_VISIBLE || true, // 是否在左下角显示播放和切换,如果使用播放器,打开自动播放再隐藏,就会以类似背景音乐的方式播放,无法取消和暂停
MUSIC_PLAYER_AUTO_PLAY:
process.env.NEXT_PUBLIC_MUSIC_PLAYER_AUTO_PLAY || true, // 是否自动播放,不过自动播放时常不生效(移动设备不支持自动播放)
Expand Down
Binary file modified public/favicon.ico
Binary file not shown.
91 changes: 9 additions & 82 deletions themes/magzine/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const CONFIG = {
// 首屏信息栏按钮文字
MAGZINE_HOME_BANNER_ENABLE: true, // 首屏右上角的宣传位
MAGZINE_HOME_BUTTON: true,
MAGZINE_HOME_BANNER_ENABLE: false, // 首屏右上角的宣传位
MAGZINE_HOME_BUTTON: false,
MAGZINE_HOME_BUTTON_URL: '/about',
MAGZINE_HOME_BUTTON_TEXT: '了解更多',

Expand All @@ -11,15 +11,8 @@ const CONFIG = {
MAGZINE_HOME_DESCRIPTION:
'借助NotionNext,获得助您开创、经营和扩展业务所需的全部工具和帮助。',
MAGZINE_HOME_TIPS: 'AI时代来临,这是属于超级个体的狂欢盛宴!',

// 首页底部推荐文章标签, 例如 [推荐] , 最多六篇文章; 若留空白'',则推荐最近更新文章
MAGZINE_RECOMMEND_POST_TAG: '推荐',
MAGZINE_RECOMMEND_POST_COUNT: 6,
MAGZINE_RECOMMEND_POST_TITLE: '推荐文章',
MAGZINE_RECOMMEND_POST_SORT_BY_UPDATE_TIME: false, // 推荐文章排序,为`true`时将强制按最后修改时间倒序

// Style
MAGZINE_RIGHT_PANEL_DARK: process.env.NEXT_PUBLIC_MAGZINE_RIGHT_DARK || false, // 右侧面板深色模式
MAGZINE_RIGHT_PANEL_DARK: process.env.NEXT_PUBLIC_MAGZINE_RIGHT_DARK || true, // 右侧面板深色模式

MAGZINE_POST_LIST_COVER: true, // 文章列表显示图片封面
MAGZINE_POST_LIST_PREVIEW: true, // 列表显示文章预览
Expand All @@ -31,83 +24,17 @@ const CONFIG = {

// 文章页面联系卡
MAGZINE_SOCIAL_CARD: true, // 是否显示右侧,点击加入社群按钮
MAGZINE_SOCIAL_CARD_TITLE_1: '交流频道',
MAGZINE_SOCIAL_CARD_TITLE_2: '加入社群讨论分享',
MAGZINE_SOCIAL_CARD_TITLE_3: '点击加入社群',
MAGZINE_SOCIAL_CARD_TITLE_1: 'Valhalla官方频道',
MAGZINE_SOCIAL_CARD_TITLE_2: '加入社群',
MAGZINE_SOCIAL_CARD_TITLE_3: '点击加入英灵殿',
MAGZINE_SOCIAL_CARD_URL: 'https://docs.tangly1024.com/article/chat-community',

// 页脚菜单
MAGZINE_FOOTER_LINKS: [
{
name: '友情链接',
menus: [
{
title: 'Tangly的学习笔记',
href: 'https://blog.tangly1024.com'
},
{
title: 'NotionNext',
href: 'https://www.tangly1024.com'
}
]
},
{
name: '开发者',
menus: [
{ title: 'Github', href: 'https://github.com/tangly1024/NotionNext' },
{
title: '开发帮助',
href: 'https://docs.tangly1024.com/article/how-to-develop-with-notion-next'
},
{
title: '功能反馈',
href: 'https://github.com/tangly1024/NotionNext/issues/new/choose'
},
{
title: '技术讨论',
href: 'https://github.com/tangly1024/NotionNext/discussions'
},
{
title: '关于作者',
href: 'https://blog.tangly1024.com/about'
}
]
},
{
name: '支持',
menus: [
{
title: '站长社群',
href: 'https://docs.tangly1024.com/article/chat-community'
},
{
title: '咨询与定制',
href: 'https://docs.tangly1024.com/article/my-service'
},
{
title: '升级手册',
href: 'https://docs.tangly1024.com/article/my-service'
},
{
title: '安装教程',
href: 'https://docs.tangly1024.com/article/how-to-update-notionnext'
},
{ title: 'SEO推广', href: 'https://seo.tangly1024.com/' }
]
},
{
name: '解决方案',
menus: [
{ title: '建站工具', href: 'https://www.tangly1024.com/' },
{ title: 'NotionNext', href: 'https://docs.tangly1024.com/about' }
]
}
],


// 旧版本顶部菜单
MAGZINE_MENU_CATEGORY: true, // 显示分类
MAGZINE_MENU_CATEGORY: false, // 显示分类
MAGZINE_MENU_TAG: true, // 显示标签
MAGZINE_MENU_ARCHIVE: true, // 显示归档
MAGZINE_MENU_ARCHIVE: false, // 显示归档
MAGZINE_MENU_SEARCH: true, // 显示搜索

MAGZINE_WIDGET_TO_TOP: true // 跳回顶部
Expand Down
6 changes: 3 additions & 3 deletions themes/simple/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ const CONFIG = {

SIMPLE_LOGO_IMG: '/Logo.webp',
SIMPLE_TOP_BAR: true, // 显示顶栏
SIMPLE_TOP_BAR_CONTENT: process.env.NEXT_PUBLIC_THEME_SIMPLE_TOP_TIPS || '',
SIMPLE_LOGO_DESCRIPTION: process.env.NEXT_PUBLIC_THEME_SIMPLE_LOGO_DESCRIPTION || '<div>编程爱好者<br/>/互联网从业者<br/>/知识分享博主</div>',
SIMPLE_TOP_BAR_CONTENT: process.env.NEXT_PUBLIC_THEME_SIMPLE_TOP_TIPS || 'Valhalla',
SIMPLE_LOGO_DESCRIPTION: process.env.NEXT_PUBLIC_THEME_SIMPLE_LOGO_DESCRIPTION || ' ————Vigrid II',

SIMPLE_AUTHOR_LINK: process.env.NEXT_PUBLIC_AUTHOR_LINK || '#',

SIMPLE_POST_AD_ENABLE: process.env.NEXT_PUBLIC_SIMPLE_POST_AD_ENABLE || false, // 文章列表是否插入广告

SIMPLE_POST_COVER_ENABLE: process.env.NEXT_PUBLIC_SIMPLE_POST_COVER_ENABLE || false, // 是否展示博客封面
SIMPLE_POST_COVER_ENABLE: process.env.NEXT_PUBLIC_SIMPLE_POST_COVER_ENABLE || true, // 是否展示博客封面

SIMPLE_ARTICLE_RECOMMEND_POSTS: process.env.NEXT_PUBLIC_SIMPLE_ARTICLE_RECOMMEND_POSTS || true, // 文章详情底部显示推荐

Expand Down