|
|
@@ -12,19 +12,19 @@
|
|
12
|
12
|
li.post.shadow(v-for="sticky in allSticky")
|
|
13
|
13
|
card(:content="sticky" :type="`${sticky.type}`")
|
|
14
|
14
|
|
|
15
|
|
- //- firstRow: ['episodes', 'exhibitions', 'events', 'shorts', 'posts'], exceprt on episodes only.
|
|
|
15
|
+ //- firstRow: ['episode', 'exhibition', 'event', 'short', 'post'], exceprt on episode only.
|
|
16
|
16
|
section
|
|
17
|
17
|
ul
|
|
18
|
18
|
li.post.shadow(v-for="type in firstRow")
|
|
19
|
19
|
card(:content="firstPostOfType(type)" :type="type")
|
|
20
|
20
|
|
|
21
|
|
- //- secondRow: 'artists', // This is only ONE post, excerpt on artist
|
|
|
21
|
+ //- secondRow: 'artist', // This is only ONE post, excerpt on artist
|
|
22
|
22
|
section.max
|
|
23
|
23
|
ul.w-max
|
|
24
|
24
|
li.post.shadow(v-for="post in randomPosts.filter(p => p.type == secondRow)")
|
|
25
|
25
|
card(v-if="post" :content="post" :type="`${post.type}`" :wide="true")
|
|
26
|
26
|
|
|
27
|
|
- //- (thirdRow) firstRow.flipped: ['guides', 'objects', 'techniques', 'talks', 'center'], exceprt on guides only
|
|
|
27
|
+ //- (thirdRow) firstRow.flipped: ['object', 'technique', 'publication', 'center', 'guide'], exceprt on guide only
|
|
28
|
28
|
section
|
|
29
|
29
|
ul.flipped
|
|
30
|
30
|
li.post.shadow(v-for="type in thirdRow")
|
|
|
@@ -45,7 +45,7 @@ export default {
|
|
45
|
45
|
return {
|
|
46
|
46
|
firstRow: ['episode', 'exhibition', 'event', 'short', 'post'],
|
|
47
|
47
|
secondRow: 'artist', // This is only ONE post
|
|
48
|
|
- thirdRow: ['object', 'short', 'publication', 'post', 'guide'],
|
|
|
48
|
+ thirdRow: ['object', 'technique', 'publication', 'center', 'guide'],
|
|
49
|
49
|
}
|
|
50
|
50
|
},
|
|
51
|
51
|
async created() {
|
|
|
@@ -83,7 +83,7 @@ export default {
|
|
83
|
83
|
await this.$store.dispatch('getAllPages', { sortType: null, params: null })
|
|
84
|
84
|
}
|
|
85
|
85
|
await this.checkAndSetHero('welcome')
|
|
86
|
|
- await this.$store.dispatch('getRandomPosts', ['artist', 'guide', 'object', 'short', 'publication', 'post'])
|
|
|
86
|
+ await this.$store.dispatch('getRandomPosts', ['artist', 'guide', 'object', 'technique', 'publication', 'post'])
|
|
87
|
87
|
},
|
|
88
|
88
|
methods: {
|
|
89
|
89
|
firstPostOfType(type) {
|