Skip to content

Commit

Permalink
Merge pull request tangly1024#476 from tangly1024/release/3.6.0
Browse files Browse the repository at this point in the history
Release/3.6.0
  • Loading branch information
tangly1024 authored Nov 19, 2022
2 parents 1d2dcd7 + d7977d7 commit 2215f83
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion blog.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,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, // 最新评论

// 站点统计
Expand Down
1 change: 0 additions & 1 deletion themes/hexo/components/PaginationNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 0 additions & 2 deletions themes/next/components/PaginationNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ const PaginationNumber = ({ page, totalPage }) => {
}

function getPageElement(pagePrefix, page, currentPage) {
console.log(pagePrefix, page, currentPage)

return (
<Link href={page === 1 ? `${pagePrefix}/` : `${pagePrefix}/page/${page}`} key={page} passHref>
<a className={
Expand Down

0 comments on commit 2215f83

Please sign in to comment.