// Homepage grid
.page--index.f-col.between
header.w-max(v-if="allPages.welcome")
.page-content(v-html="allPages.welcome.content")
article.w-max
//- sticky section
section(v-if="allSticky && Object.keys(allSticky).length").stickies
ul(:class="[`sticky-${Object.keys(allSticky).length}`, 'flipped']")
//- if sticky
li.post.shadow(v-for="sticky in allSticky")
card(:content="sticky" :type="`${sticky.type}`")
//- firstRow: ['episode', 'exhibition', 'event', 'short', 'post'], exceprt on episode only.
section
ul
li.post.shadow(v-for="type in firstRow")
card(:content="firstPostOfType(type)" :type="type")
//- secondRow: 'artist', // This is only ONE post, excerpt on artist
section.max
ul.w-max
li.post.shadow(v-for="post in randomPosts.filter(p => p.type == secondRow)")
card(v-if="post" :content="post" :type="`${post.type}`" :wide="true")
//- (thirdRow) firstRow.flipped: ['object', 'technique', 'publication', 'center', 'guide'], exceprt on guide only
section
ul.flipped
li.post.shadow(v-for="type in thirdRow")
.random--wrapper(v-for="post in [...randomPosts, ...allPages.filter(p => p.slug == 'center')].filter(p => p.type == type)")
card(:content="post" :type="type")