v1.5.1
This commit is contained in:
parent
70047ff7b5
commit
ded87a4079
|
|
@ -23,6 +23,7 @@ features: # 可选的
|
|||
|
||||
# 文章列表显示方式: detailed 默认,显示详细版文章列表(包括作者、分类、标签、摘要、分页等)| simple => 显示简约版文章列表(仅标题和日期)| none 不显示文章列表
|
||||
# postList: detailed
|
||||
# simplePostListLength: 10 # 简约版文章列表显示的文章数量,默认10。(仅在postList设置为simple时生效)
|
||||
---
|
||||
|
||||
|
||||
|
|
@ -82,6 +83,3 @@ features: # 可选的
|
|||
- **GitHub**: <https://github.com/xugaoyi>
|
||||
|
||||
</br> -->
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@
|
|||
<UpdateArticle
|
||||
class="card-box"
|
||||
v-if="homeData.postList === 'simple'"
|
||||
:length="5"
|
||||
:length="homeData.simplePostListLength || 10"
|
||||
/>
|
||||
|
||||
<!-- 详情版文章列表 -->
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ export default {
|
|||
display flex
|
||||
padding 8px 0
|
||||
margin 0
|
||||
height 50px
|
||||
height 45px
|
||||
width 100%
|
||||
dd
|
||||
font-size 1.1rem
|
||||
|
|
@ -119,7 +119,7 @@ export default {
|
|||
width 50px
|
||||
text-align center
|
||||
margin 0
|
||||
line-height 50px
|
||||
line-height 45px
|
||||
dt
|
||||
flex 1
|
||||
display flex
|
||||
|
|
@ -127,7 +127,7 @@ export default {
|
|||
color var(--textColor)
|
||||
flex 1
|
||||
display flex
|
||||
height 50px
|
||||
height 45px
|
||||
align-items center
|
||||
font-weight normal
|
||||
div
|
||||
|
|
@ -147,5 +147,5 @@ export default {
|
|||
color #999
|
||||
text-align right
|
||||
font-size 0.9rem
|
||||
line-height 50px
|
||||
line-height 45px
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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 () {
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue