|
|
@@ -18,12 +18,12 @@
|
|
18
|
18
|
section(v-for="(post, i) in posts" :key="post.slug").shadow.post
|
|
19
|
19
|
card(:content="post" :type="type" :wide="type == 'exhibition' && i > 1 || type == 'event' && i > 1 ")
|
|
20
|
20
|
|
|
21
|
|
- footer
|
|
|
21
|
+ footer(v-if="loadingFetched || showMeta")
|
|
22
|
22
|
p(v-if="loadingFetched") loading more {{ type }} ...
|
|
23
|
23
|
p {{ `${type} count: ${Object.values(posts).length}` }}
|
|
24
|
24
|
p {{ `show sidebar: ${sidebar}` }}
|
|
25
|
|
-
|
|
26
|
|
- //- sidebar(v-if="sidebar" :type="`${type}`" layout="list")
|
|
|
25
|
+
|
|
|
26
|
+ sidebar(v-if="sidebar" :type="`${type}`" layout="list")
|
|
27
|
27
|
|
|
28
|
28
|
</template>
|
|
29
|
29
|
|
|
|
@@ -47,6 +47,7 @@ export default {
|
|
47
|
47
|
mixins: [postTypeGetters, scrollTop, heroUtils],
|
|
48
|
48
|
data() {
|
|
49
|
49
|
return {
|
|
|
50
|
+ showMeta: false,
|
|
50
|
51
|
page: 0,
|
|
51
|
52
|
perPage: 15,
|
|
52
|
53
|
keepFetching: true,
|
|
|
@@ -84,7 +85,7 @@ export default {
|
|
84
|
85
|
if(!type) return console.error(`type: ${type} not found...`)
|
|
85
|
86
|
if(!this.keepFetching) return console.warn('nothing left to fetch...')
|
|
86
|
87
|
|
|
87
|
|
- console.warn(`loading more ${type} posts...`)
|
|
|
88
|
+ console.warn(`loading page ${this.page} of ${type} posts: ${this.page * this.perPage} through ${this.perPage}`)
|
|
88
|
89
|
this.loadingFetched = true
|
|
89
|
90
|
this.page++
|
|
90
|
91
|
await this.getPosts()
|
|
|
@@ -185,9 +186,6 @@ export default {
|
|
185
|
186
|
// This only fires navigating from
|
|
186
|
187
|
// a list page, to another list page
|
|
187
|
188
|
type(newType, oldType){
|
|
188
|
|
- console.log('old:', oldType)
|
|
189
|
|
- console.log('new:', newType)
|
|
190
|
|
-
|
|
191
|
189
|
if(!postTypes.includes(newType)) return console.warn('type not found...')
|
|
192
|
190
|
this.clearAndInitPostList()
|
|
193
|
191
|
this.setIntersectionLoader()
|
|
|
@@ -218,28 +216,26 @@ export default {
|
|
218
|
216
|
> .content
|
|
219
|
217
|
padding: 0
|
|
220
|
218
|
width: 100%
|
|
|
219
|
+ > footer
|
|
|
220
|
+ background-color:white
|
|
|
221
|
+ padding: $ms-0
|
|
221
|
222
|
/* posts not grid list */
|
|
222
|
|
- ul
|
|
223
|
|
- img
|
|
224
|
|
- max-width: 50%
|
|
|
223
|
+ ul img
|
|
|
224
|
+ max-width: 50%
|
|
225
|
225
|
|
|
226
|
226
|
.is-grid
|
|
227
|
227
|
display: flex
|
|
228
|
228
|
flex-direction: row
|
|
229
|
229
|
flex-wrap: wrap
|
|
230
|
230
|
justify-content: space-between
|
|
231
|
|
- /* extra padding required? */
|
|
232
|
|
- /* padding: $ms-0 */
|
|
233
|
|
- /* background-color: white */
|
|
234
|
231
|
section
|
|
235
|
232
|
width: 32.5%
|
|
236
|
|
- /* 4 column grid see how dense this becomes */
|
|
237
|
|
- /* width: 24% */
|
|
238
|
233
|
ul
|
|
239
|
234
|
flex-wrap: wrap
|
|
240
|
235
|
list-style: none
|
|
241
|
236
|
img
|
|
242
|
237
|
max-width: 100%
|
|
|
238
|
+
|
|
243
|
239
|
@media (min-width: $medium)
|
|
244
|
240
|
.page--list.f-col
|
|
245
|
241
|
flex-direction: row
|