diff --git a/README.md b/README.md
index 2fb4d39d..46d2f986 100644
--- a/README.md
+++ b/README.md
@@ -69,6 +69,8 @@
 Joshua Astray 🔧 🐛 |
+  Vixcity 🔧 🐛 |
+
diff --git a/blog.config.js b/blog.config.js
index 37a843fa..81ab94d1 100644
--- a/blog.config.js
+++ b/blog.config.js
@@ -59,9 +59,9 @@ const BLOG = {
PREVIEW_TAG_COUNT: 16, // 首页最多展示的标签数量,0为不限制
// 鼠标点击烟花特效
- FIREWORKS: process.env.NEXT_PUBLIC_FIREWORKS || true, // 鼠标点击烟花特效
- // 是否启用彩色的烟花
- FIREWORKSCOLOR: true,
+ FIREWORKS: process.env.NEXT_PUBLIC_FIREWORKS || false, // 开关
+ // 烟花色彩,感谢 https://github.com/Vixcity 提交的色彩
+ FIREWORKS_COLOR: ['255, 20, 97', '24, 255, 146', '90, 135, 255', '251, 243, 140'],
// 悬浮挂件
WIDGET_PET: process.env.NEXT_PUBLIC_WIDGET_PET || true, // 是否显示宠物挂件
@@ -155,6 +155,7 @@ const BLOG = {
// 作废配置
AVATAR: '/avatar.png', // 作者头像,被notion中的ICON覆盖。若无ICON则取public目录下的avatar.png
+ TITLE: process.env.NEXT_PUBLIC_TITLE || 'NotionNext BLOG', // 站点标题 ,被notion中的页面标题覆盖
TITLE: process.env.NEXT_PUBLIC_TITLE || 'VIXCITY BLOG', // 站点标题 ,被notion中的页面标题覆盖
HOME_BANNER_IMAGE: './bg_image.jpg', // 首页背景大图, 会被notion中的封面图覆盖,若无封面图则会使用代码中的 /public/bg_image.jpg 文件
DESCRIPTION: process.env.NEXT_PUBLIC_DESCRIPTION || '我的小破博客', // 站点描述,被notion中的页面描述覆盖
diff --git a/components/Fireworks.js b/components/Fireworks.js
index 74729199..6d80772e 100644
--- a/components/Fireworks.js
+++ b/components/Fireworks.js
@@ -18,12 +18,8 @@ export const Fireworks = () => {
* @param config
*/
function createFireworks(config) {
- let defaultColors = []
- BLOG.FIREWORKSCOLOR
- ? defaultColors = ['255, 20, 97', '24, 255, 146', '90, 135, 255', '251, 243, 140']
- : defaultColors = ['102, 167, 221', '62, 131, 225', '33, 78, 194']
const defaultConfig = {
- colors: defaultColors,
+ colors: BLOG.FIREWORKSCOLOR,
numberOfParticules: 20,
orbitRadius: {
min: 50,
@@ -48,7 +44,7 @@ function createFireworks(config) {
let pointerY = 0
// sky blue
- const colors = config.colors || defaultColors
+ const colors = config.colors
const canvasEl = document.querySelector('.fireworks')
const ctx = canvasEl.getContext('2d')