From 350d890fabd7b727cfee1244011583f765172b79 Mon Sep 17 00:00:00 2001 From: tangly Date: Sat, 19 Nov 2022 21:54:35 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B8=85=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/hexo/components/PaginationNumber.js | 1 - 1 file changed, 1 deletion(-) diff --git a/themes/hexo/components/PaginationNumber.js b/themes/hexo/components/PaginationNumber.js index 811db406..fba781e2 100644 --- a/themes/hexo/components/PaginationNumber.js +++ b/themes/hexo/components/PaginationNumber.js @@ -13,7 +13,6 @@ const PaginationNumber = ({ page, totalPage }) => { const currentPage = +page const showNext = page < totalPage const pagePrefix = router.asPath.replace(/\/page\/[1-9]\d*/, '').replace(/\/$/, '') - console.log('哈哈', pagePrefix, page, currentPage, totalPage) const pages = generatePages(pagePrefix, page, currentPage, totalPage) return ( From a13dc72be390c59164e22d81f0c28f1d5c28a708 Mon Sep 17 00:00:00 2001 From: tangly Date: Sat, 19 Nov 2022 21:58:27 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blog.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog.config.js b/blog.config.js index c8de31d4..04c81d63 100644 --- a/blog.config.js +++ b/blog.config.js @@ -118,7 +118,7 @@ const BLOG = { COMMENT_VALINE_SERVER_URLS: process.env.NEXT_PUBLIC_VALINE_SERVER_URLS || '', // 该配置适用于国内自定义域名用户, 海外版本会自动检测(无需手动填写) @see https://valine.js.org/configuration.html#serverURLs COMMENT_VALINE_PLACEHOLDER: process.env.NEXT_PUBLIC_VALINE_PLACEHOLDER || '抢个沙发吧~', // 可以搭配后台管理评论 https://github.com/DesertsP/Valine-Admin 便于查看评论,以及邮件通知,垃圾评论过滤等功能 - COMMENT_WALINE_SERVER_URL: process.env.NEXT_PUBLIC_WALINE_SERVER_URL || '', // Waline 评论 @see https://waline.js.org/guide/get-started.html + COMMENT_WALINE_SERVER_URL: process.env.NEXT_PUBLIC_WALINE_SERVER_URL || '', // 请配置完整的Waline评论地址 例如 hhttps://preview-waline.tangly1024.com @see https://waline.js.org/guide/get-started.html COMMENT_WALINE_RECENT: process.env.NEXT_PUBLIC_WALINE_RECENT || false, // 最新评论 // 站点统计 From d7977d75b43bb02b5304220cbda3faa84e340962 Mon Sep 17 00:00:00 2001 From: tangly Date: Sat, 19 Nov 2022 22:02:07 +0800 Subject: [PATCH 3/3] clean code --- themes/next/components/PaginationNumber.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/themes/next/components/PaginationNumber.js b/themes/next/components/PaginationNumber.js index f786c853..764e3eb4 100644 --- a/themes/next/components/PaginationNumber.js +++ b/themes/next/components/PaginationNumber.js @@ -60,8 +60,6 @@ const PaginationNumber = ({ page, totalPage }) => { } function getPageElement(pagePrefix, page, currentPage) { - console.log(pagePrefix, page, currentPage) - return (