Przeglądaj źródła

added center card condition

tags/1.0.0
Alej 4 lat temu
rodzic
commit
053322a1a5
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2
    2
      vue-theme/src/pages/index.vue

+ 2
- 2
vue-theme/src/pages/index.vue Wyświetl plik

@@ -28,7 +28,7 @@
28 28
         section
29 29
             ul.flipped
30 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 32
                         card(:content="post" :type="type")
33 33
 </template>
34 34
 
@@ -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', 'technique', 'publication', 'center', 'guide'],
48
+            thirdRow: ['object', 'technique', 'publication', 'page', 'guide'],
49 49
             // ideal iteration
50 50
             // thirdRow: ['object', 'talks', 'publication', 'center', 'guide'],
51 51
         }

Ładowanie…
Anuluj
Zapisz