Skip to content

Instantly share code, notes, and snippets.

@zackproser
Created November 17, 2019 21:13
Show Gist options
  • Save zackproser/4e95eb5a28be8e0afbc00c6b1df778a4 to your computer and use it in GitHub Desktop.
Save zackproser/4e95eb5a28be8e0afbc00c6b1df778a4 to your computer and use it in GitHub Desktop.
<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