ソースを参照

:bug: changing how list template accesses page info | #95

tags/0.9.0
j 4年前
コミット
f3844c93b1
1個のファイルの変更4行の追加2行の削除
  1. 4
    2
      vue-theme/src/pages/list.vue

+ 4
- 2
vue-theme/src/pages/list.vue ファイルの表示

@@ -71,7 +71,7 @@ export default {
71 71
                       .filter(p => p)
72 72
                       .pop()
73 73
 
74
-            console.log('Gettings posts:', this.type)
74
+            // console.log('Gettings posts:', this.type)
75 75
             // if (!Object.values(sortTypes).includes(sort)) {
76 76
             //     console.log('Sort not found:', sort)
77 77
             //     sort = null
@@ -103,7 +103,9 @@ export default {
103 103
             // We always set a hero no matter what
104 104
             // Because the hero component will deal
105 105
             // with how to render based on hero.url
106
-            const page = this.allPages[type]
106
+            const page = this.allPages.filter(
107
+                page => page.slug == type + 's',
108
+            )[0]
107 109
 
108 110
             let json = { url: page.featured, heroType: 'image' }
109 111
             if (

読み込み中…
キャンセル
保存