Created
November 17, 2019 21:13
-
-
Save zackproser/4e95eb5a28be8e0afbc00c6b1df778a4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 :class="`section pb-0 bg-gradient-${this.getClassType()}`"> | |
<div class="container"> | |
<div class="row row-grid" v-for="i in Math.ceil(posts.length / 3)" :key="i"> | |
<post-card v-for="post in posts.slice((i - 1) * 3, i * 3)" v-bind:key="post.slug" :prefix="prefix" :post="post" :ct="getClassType()"></post-card> | |
</div> | |
</div> | |
</section> | |
</template> | |
<script> | |
import PostCard from '~/components/PostCard.vue' | |
export default { | |
layout: 'default', | |
name: 'Exhibit', | |
components: { | |
PostCard | |
}, | |
props: { | |
prefix: String, | |
slug: String, | |
posts: Array | |
} | |
} | |
</script> | |
<style scoped> | |
.container { | |
margin-top: 100px; | |
padding-bottom: 100px; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment