From d476d6fcd832c25896cccf29aad1005c8eb9936d Mon Sep 17 00:00:00 2001 From: reco_luan Date: Sat, 20 Jul 2019 19:38:25 +0800 Subject: [PATCH] fix: hide read number of home articles --- components/HomeBlog.vue | 1 + components/NoteAbstract.vue | 4 ++-- components/PageInfo.vue | 24 +++++++++++++++++++++--- components/SidebarLink.vue | 2 +- 4 files changed, 25 insertions(+), 6 deletions(-) diff --git a/components/HomeBlog.vue b/components/HomeBlog.vue index 5163f43..d25e2ed 100644 --- a/components/HomeBlog.vue +++ b/components/HomeBlog.vue @@ -13,6 +13,7 @@ v-if="showList" class="blog-list" :data="posts" + :isHome="true" :currentPage="1">
hero diff --git a/components/NoteAbstract.vue b/components/NoteAbstract.vue index 911be3a..a3f50e2 100644 --- a/components/NoteAbstract.vue +++ b/components/NoteAbstract.vue @@ -11,7 +11,7 @@

- + @@ -21,7 +21,7 @@ import PageInfo from './PageInfo' export default { components: { PageInfo }, - props: ['data', 'currentPage', 'currentTag'] + props: ['data', 'currentPage', 'currentTag', 'isHome'] } diff --git a/components/PageInfo.vue b/components/PageInfo.vue index 5268a3a..5c30c19 100644 --- a/components/PageInfo.vue +++ b/components/PageInfo.vue @@ -6,7 +6,7 @@ {{ pageInfo.frontmatter.author || $themeConfig.author || $site.title }} {{ new Date(pageInfo.frontmatter.date).toLocaleDateString() }} - +