Procházet zdrojové kódy

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

tags/0.9.0
j před 4 roky
rodič
revize
f3844c93b1
1 změnil soubory, kde provedl 4 přidání a 2 odebrání
  1. 4
    2
      vue-theme/src/pages/list.vue

+ 4
- 2
vue-theme/src/pages/list.vue Zobrazit soubor

71
                       .filter(p => p)
71
                       .filter(p => p)
72
                       .pop()
72
                       .pop()
73
 
73
 
74
-            console.log('Gettings posts:', this.type)
74
+            // console.log('Gettings posts:', this.type)
75
             // if (!Object.values(sortTypes).includes(sort)) {
75
             // if (!Object.values(sortTypes).includes(sort)) {
76
             //     console.log('Sort not found:', sort)
76
             //     console.log('Sort not found:', sort)
77
             //     sort = null
77
             //     sort = null
103
             // We always set a hero no matter what
103
             // We always set a hero no matter what
104
             // Because the hero component will deal
104
             // Because the hero component will deal
105
             // with how to render based on hero.url
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
             let json = { url: page.featured, heroType: 'image' }
110
             let json = { url: page.featured, heroType: 'image' }
109
             if (
111
             if (

Načítá se…
Zrušit
Uložit