|
@@ -22,6 +22,15 @@
|
|
|
<!-- end of blog -->
|
|
|
<!-- pagination -->
|
|
|
<div class="section">
|
|
|
+ <no-ssr placeholder="Loading...">
|
|
|
+ <paginate
|
|
|
+ :page-count="5"
|
|
|
+ :click-handler="handleClick"
|
|
|
+ :prev-text="'Prev'"
|
|
|
+ :next-text="'Next'"
|
|
|
+ :container-class="'paginationContainer'">
|
|
|
+ </paginate>
|
|
|
+ </no-ssr>
|
|
|
</div>
|
|
|
<!-- end of pagination -->
|
|
|
</div>
|
|
@@ -65,6 +74,11 @@ export default {
|
|
|
async fetch({store}) {
|
|
|
await store.dispatch('blog/fetchBlogs')
|
|
|
await store.dispatch('blog/fetchFeaturedBlogs', {'filter[featured]': true})
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ handleClick() {
|
|
|
+ alert('Page Clicked!')
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|