This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<nav id="pagination"> | |
<ul class="page-numbers" v-if="$store.state.totalPageCount"> | |
<li v-for="num in this.pageNumbers" v-if="num != null" v-bind:style="{ width: (100 / pageNumberCount) + '%' }"> | |
<nuxt-link v-if="num != $route.query.page && num != currentPage" :to="{ path: '/', query: { page: num } }">{{ num }}</nuxt-link> | |
<span v-else>{{ num }}</span> | |
</li> | |
</ul> | |
<ul class="page-guides" v-if="this.$store.state.totalPageCount != 1"> | |
<li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<section> | |
<articles /> | |
<pagination /> | |
</section> | |
</template> | |
<script> | |
import Articles from '~/components/Articles.vue' | |
import Pagination from '~/components/Pagination.vue' |