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