Просмотр исходного кода

Merge branch 'center-card' of craft-in-america/vue-wp into dev

tags/1.0.0
maeda 4 лет назад
Родитель
Сommit
4f23e4f607
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      vue-theme/src/pages/index.vue

+ 2
- 2
vue-theme/src/pages/index.vue Просмотреть файл

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
         }

Загрузка…
Отмена
Сохранить