Skip to content

Commit 7779170

Browse files
author
reco_luan
committed
fix(vuepress-theme-reco): fix the number of views is not displayed
1 parent ca94b1c commit 7779170

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/vuepress-theme-reco/components/Page.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
</div>
7070
</ModuleTransition>
7171

72-
<ModuleTransition delay="0.24">
72+
<ModuleTransition delay="0.32">
7373
<Comments v-if="recoShowModule" :isShowComments="shouldShowComments"/>
7474
</ModuleTransition>
7575
</main>
@@ -104,7 +104,7 @@ export default {
104104
)
105105
},
106106
showAccessNumber () {
107-
return this.$themeConfig.commentsSolution === 'valine'
107+
return this.$themeConfig.valineConfig !== undefined
108108
},
109109
lastUpdated () {
110110
return this.$page.lastUpdated

packages/vuepress-theme-reco/layouts/Layout.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<Common>
33
<component v-if="$frontmatter.home" :is="homeCom"/>
44
<Page v-else :sidebar-items="sidebarItems"/>
5+
<Comments :isShowComments="false"/>
56
<Footer v-if="$frontmatter.home" class="footer" />
67
</Common>
78
</template>

0 commit comments

Comments
 (0)