Bläddra i källkod

added center card condition

tags/1.0.0
Alej 4 år sedan
förälder
incheckning
053322a1a5
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      vue-theme/src/pages/index.vue

+ 2
- 2
vue-theme/src/pages/index.vue Visa fil

28
         section
28
         section
29
             ul.flipped
29
             ul.flipped
30
                 li.post.shadow(v-for="type in thirdRow")
30
                 li.post.shadow(v-for="type in thirdRow")
31
-                     .random--wrapper(v-for="post in randomPosts.filter(p => p.type == type)")
31
+                    .random--wrapper(v-for="post in [...randomPosts, ...allPages.filter(p => p.slug == 'center')].filter(p => p.type == type)")
32
                         card(:content="post" :type="type")
32
                         card(:content="post" :type="type")
33
 </template>
33
 </template>
34
 
34
 
45
         return {
45
         return {
46
             firstRow: ['episode', 'exhibition', 'event', 'short', 'post'],
46
             firstRow: ['episode', 'exhibition', 'event', 'short', 'post'],
47
             secondRow: 'artist', // This is only ONE post
47
             secondRow: 'artist', // This is only ONE post
48
-            thirdRow: ['object', 'technique', 'publication', 'center', 'guide'],
48
+            thirdRow: ['object', 'technique', 'publication', 'page', 'guide'],
49
             // ideal iteration
49
             // ideal iteration
50
             // thirdRow: ['object', 'talks', 'publication', 'center', 'guide'],
50
             // thirdRow: ['object', 'talks', 'publication', 'center', 'guide'],
51
         }
51
         }

Laddar…
Avbryt
Spara