Skip to content

Commit

Permalink
v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xugaoyi committed Oct 13, 2020
1 parent 70047ff commit ded87a4
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 26 deletions.
12 changes: 5 additions & 7 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ features: # 可选的

# 文章列表显示方式: detailed 默认,显示详细版文章列表(包括作者、分类、标签、摘要、分页等)| simple => 显示简约版文章列表(仅标题和日期)| none 不显示文章列表
# postList: detailed
# simplePostListLength: 10 # 简约版文章列表显示的文章数量,默认10。(仅在postList设置为simple时生效)
---


<!-- 小熊猫 -->
<!-- <img src="/img/panda-waving.png" class="panda no-zoom" style="width: 130px;height: 115px;opacity: 0.8;margin-bottom: -4px;padding-bottom:0;position: fixed;bottom: 0;left: 0.5rem;z-index: 1;"> -->

<!--
<!--
## 关于
### 📚Blog
Expand All @@ -48,9 +49,9 @@ features: # 可选的
博客部分特色功能介绍
#### 一站式技术搜索
博客内容中包含部分技术教程,可以利用搜索框快速搜索到相关文档,即使博客中没有的,你还可以选择最下方的 `在XXX中搜索“xxx”` 快速到达你想要找的内容。
#### 深色模式与阅读模式
关爱程序员,保护视力,点击右下角的主题模式按钮试试吧~
Expand Down Expand Up @@ -80,8 +81,5 @@ features: # 可选的
- **WeChat or QQ**: <a href="tencent://message/?uin=894072666&Site=&Menu=yesUrl" class='qq'>894072666</a>
- **Email**: <a href="mailto:[email protected]">[email protected]</a>
- **GitHub**: <https://github.com/xugaoyi>
</br> -->


</br> -->
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,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.5.0",
"vuepress-theme-vdoing": "^1.5.1",
"yamljs": "^0.3.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion theme-vdoing/components/BloggerBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</div>
<div
class="icons"
v-if="social"
v-if="social && social.icons && social.icons.length"
>
<a
v-for="(item, index) in social.icons"
Expand Down
2 changes: 1 addition & 1 deletion theme-vdoing/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
<UpdateArticle
class="card-box"
v-if="homeData.postList === 'simple'"
:length="5"
:length="homeData.simplePostListLength || 10"
/>

<!-- 详情版文章列表 -->
Expand Down
8 changes: 4 additions & 4 deletions theme-vdoing/components/UpdateArticle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,23 +111,23 @@ export default {
display flex
padding 8px 0
margin 0
height 50px
height 45px
width 100%
dd
font-size 1.1rem
color #F17229
width 50px
text-align center
margin 0
line-height 50px
line-height 45px
dt
flex 1
display flex
a
color var(--textColor)
flex 1
display flex
height 50px
height 45px
align-items center
font-weight normal
div
Expand All @@ -147,5 +147,5 @@ export default {
color #999
text-align right
font-size 0.9rem
line-height 50px
line-height 45px
</style>
21 changes: 10 additions & 11 deletions theme-vdoing/layouts/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,17 +97,6 @@ export default {
themeMode: 'light'
}
},
beforeMount () {
// 引入图标库
const social = this.$themeConfig.social
if (social && social.iconfontCssFile) {
let linkElm = document.createElement("link")
linkElm.setAttribute('rel', 'stylesheet');
linkElm.setAttribute("type", "text/css")
linkElm.setAttribute("href", social.iconfontCssFile)
document.head.appendChild(linkElm)
}
},
computed: {
showRightMenu () {
const { headers } = this.$page
Expand Down Expand Up @@ -184,6 +173,16 @@ export default {
this.themeMode = mode
}
this.setBodyClass()
// 引入图标库
const social = this.$themeConfig.social
if (social && social.iconfontCssFile) {
let linkElm = document.createElement("link")
linkElm.setAttribute('rel', 'stylesheet');
linkElm.setAttribute("type", "text/css")
linkElm.setAttribute("href", social.iconfontCssFile)
document.head.appendChild(linkElm)
}
},
mounted () {
Expand Down
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.5.0",
"version": "1.5.1",
"description": "Vdoing theme for VuePress. 一个基于VuePress的知识管理兼博客主题。",
"author": {
"name": "gaoyi(Evan) Xu"
Expand Down

0 comments on commit ded87a4

Please sign in to comment.