Hide see all button on blog page

This commit is contained in:
Daniel_I_Am 2021-09-02 15:07:29 +02:00
parent 1ded5a4bb2
commit c3526af06c
2 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<section class="blog-recent">
<div class="header">
<h3>Latest Articles</h3>
<div class="all-articles">
<div class="all-articles" v-if="showAllArticlesButton">
<router-link :to="{ name: 'blog' }">All articles</router-link>
</div>
</div>
@ -64,6 +64,10 @@ export default {
type: Boolean,
default: false,
},
showAllArticlesButton: {
type: Boolean,
default: true
},
},
mounted() {
this.itemsPerPage = this.max;

View File

@ -2,7 +2,7 @@
<container>
<split-content>
<template v-slot:main>
<blog-recent :paginate="true" :max="10" :summary="true"></blog-recent>
<blog-recent :paginate="true" :max="10" :summary="true" :showAllArticlesButton="false"></blog-recent>
</template>
<template v-slot:aside>