Skip to content

Commit

Permalink
v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
xugaoyi committed May 30, 2020
1 parent 7da948b commit 31f2b73
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
['meta', { name: 'baidu-site-verification', content: '7F55weZDDc'}],// 百度统计博主验证
['meta', { name: 'theme-color', content: '#11a8cd'}], // 移动浏览器主题颜色

// 不蒜子访问量统计
// 不蒜子访问量统计 (主题暂未使用到)
// ['script', { src: '//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js', async: 'async'}]

],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"vuepress-plugin-one-click-copy": "^1.0.2",
"vuepress-plugin-thirdparty-search": "^1.0.2",
"vuepress-plugin-zooming": "^1.1.7",
"vuepress-theme-vdoing": "^1.1.1",
"vuepress-theme-vdoing": "^1.1.2",
"yamljs": "^0.3.0"
},
"dependencies": {
Expand Down
6 changes: 1 addition & 5 deletions theme-vdoing/components/Buttons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export default {
this.scrollTop = this.getScrollTop()
}, 100))
// this.handleShowCommentBut()
window.addEventListener('load', () => {
this.getCommentTop()
})
Expand Down Expand Up @@ -139,9 +138,6 @@ export default {
},500)
},
// handleShowCommentBut() {
// // this.showCommentBut = this.$frontmatter.comment !== false && this.$frontmatter.home !== true
// },
scrollToComment() {
window.scrollTo({ top: this.commentTop, behavior: 'smooth' })
Expand Down Expand Up @@ -172,7 +168,7 @@ export default {
},
watch: {
'$route.path'() {
// this.handleShowCommentBut()
this.showCommentBut = false
this.getCommentTop()
}
}
Expand Down
2 changes: 1 addition & 1 deletion theme-vdoing/components/CategoriesBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{{item.key}}
<span>({{item.length}})</span>
</router-link>
<router-link to="/categories/" v-if="length !== 'all'">
<router-link to="/categories/" v-if="length !== 'all' && length < categoriesData.length">
更多...
</router-link>
</div>
Expand Down
8 changes: 4 additions & 4 deletions theme-vdoing/components/Pagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
<!-- 二号位 -->
<span class="ellipsis iconfont icon-jiantou_zuoer"
v-show="currentPage > 3"
@click="goIndex(currentPage - 3)"
title="上三页"
@click="goIndex(currentPage - 2)"
title="上两页"
/>
<!--这里没有使用v-if的原因是因为部署版本在当前页大于3时刷新页面出现了一些bug-->
<span class="card-box"
Expand All @@ -52,8 +52,8 @@
<!-- 四号位 -->
<span class="ellipsis iconfont icon-jiantou_youer"
v-show="currentPage < (pages - 2)"
@click="goIndex(currentPage + 3)"
title="下三页"
@click="goIndex(currentPage + 2)"
title="下两页"
/>
<span class="card-box"
v-show="currentPage >= (pages - 2)"
Expand Down
3 changes: 2 additions & 1 deletion theme-vdoing/layouts/404.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export default {
<style lang="stylus" scoped>
.theme-vdoing-content
margin 3rem auto
padding 1.5rem
span
font-size 8rem
font-size 6rem
color $accentColor
</style>
2 changes: 1 addition & 1 deletion theme-vdoing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vuepress-theme-vdoing",
"version": "1.1.1",
"version": "1.1.2",
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
"author": {
"name": "gaoyi(Evan) Xu"
Expand Down

0 comments on commit 31f2b73

Please sign in to comment.