diff --git a/docs/index.md b/docs/index.md index 2450228..09ef126 100644 --- a/docs/index.md +++ b/docs/index.md @@ -23,13 +23,14 @@ features: # 可选的 # 文章列表显示方式: detailed 默认,显示详细版文章列表(包括作者、分类、标签、摘要、分页等)| simple => 显示简约版文章列表(仅标题和日期)| none 不显示文章列表 # postList: detailed +# simplePostListLength: 10 # 简约版文章列表显示的文章数量,默认10。(仅在postList设置为simple时生效) --- - - - - diff --git a/package.json b/package.json index 46f6c33..c9d3564 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/theme-vdoing/components/BloggerBar.vue b/theme-vdoing/components/BloggerBar.vue index 399f5a6..aee5ee7 100644 --- a/theme-vdoing/components/BloggerBar.vue +++ b/theme-vdoing/components/BloggerBar.vue @@ -9,7 +9,7 @@
diff --git a/theme-vdoing/components/UpdateArticle.vue b/theme-vdoing/components/UpdateArticle.vue index 64b6907..e02780d 100644 --- a/theme-vdoing/components/UpdateArticle.vue +++ b/theme-vdoing/components/UpdateArticle.vue @@ -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 diff --git a/theme-vdoing/layouts/Layout.vue b/theme-vdoing/layouts/Layout.vue index 2aa05f8..74ffbcc 100644 --- a/theme-vdoing/layouts/Layout.vue +++ b/theme-vdoing/layouts/Layout.vue @@ -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 () { diff --git a/theme-vdoing/package.json b/theme-vdoing/package.json index fb1edf4..6b2791b 100644 --- a/theme-vdoing/package.json +++ b/theme-vdoing/package.json @@ -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"