瀏覽代碼

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

tags/1.0.0
maeda 4 年之前
父節點
當前提交
4f23e4f607
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      vue-theme/src/pages/index.vue

+ 2
- 2
vue-theme/src/pages/index.vue 查看文件

@@ -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
         }

Loading…
取消
儲存