diff --git a/README.md b/README.md index 137323ab..2fb4d39d 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,8 @@ Ylarod
Ylarod

🔧 🐛 Etherrreal.
Etherrreal.

🔧 🐛 + + Joshua Astray
Joshua Astray

🔧 🐛 diff --git a/blog.config.js b/blog.config.js index 418c2bc3..74188d83 100644 --- a/blog.config.js +++ b/blog.config.js @@ -25,6 +25,7 @@ const BLOG = { // 网站默认使用PingFangSC及NotoSansSC, // 如需自定义字体,请将CUSTOM_FONT改为 true,并将CUSTOM_FONT_URL改为你的字体CSS地址,同时在CUSTOM_FONT_SANS与CUSTOM_FONT_SERIF中指定你的font-family CUSTOM_FONT: process.env.NEXT_PUBLIC_CUSTOM_FONT || false, // 是否使用自定义字体 + // 自定义字体示例: 请先将 CUSTOM_FONT 改为 true, 并将 CUSTOM_FONT_URL 改为你的字体CSS地址,同时在 CUSTOM_FONT_SANS 与 CUSTOM_FONT_SERIF 中指定你的 fontfamily CUSTOM_FONT_URL: ['https://npm.elemecdn.com/lxgw-wenkai-webfont@1.6.0/style.css'], // 自定义字体的CSS CUSTOM_FONT_SANS: ['LXGW WenKai'], // 自定义无衬线字体 CUSTOM_FONT_SERIF: ['LXGW WenKai'], // 自定义衬线字体 @@ -51,7 +52,7 @@ const BLOG = { POST_LIST_PREVIEW: process.env.NEXT_PUBLIC_POST_PREVIEW || 'false', // 是否在列表加载文章预览 POST_PREVIEW_LINES: 12, // 预览博客行数 POST_RECOMMEND_COUNT: 6, // 推荐文章数量 - POSTS_PER_PAGE: 6, // post counts per page + POSTS_PER_PAGE: 12, // post counts per page POSTS_SORT_BY: 'notion', // 排序方式 'date'按时间,'notion'由notion控制 PREVIEW_CATEGORY_COUNT: 16, // 首页最多展示的分类数量,0为不限制 diff --git a/components/SideBarDrawer.js b/components/SideBarDrawer.js index dac43d75..47052db9 100644 --- a/components/SideBarDrawer.js +++ b/components/SideBarDrawer.js @@ -29,22 +29,22 @@ const SideBarDrawer = ({ children, isOpen, onOpen, onClose, className }) => { const sideBarDrawerBackground = window.document.getElementById('sidebar-drawer-background') if (showStatus) { - sideBarDrawer.classList.replace('-ml-56', 'ml-0') + sideBarDrawer.classList.replace('-ml-60', 'ml-0') sideBarDrawerBackground.classList.replace('hidden', 'block') } else { - sideBarDrawer.classList.replace('ml-0', '-ml-56') + sideBarDrawer.classList.replace('ml-0', '-ml-60') sideBarDrawerBackground.classList.replace('block', 'hidden') } } - return