|
|
@@ -4,10 +4,9 @@
|
|
4
|
4
|
|
|
5
|
5
|
header.center.t-up
|
|
6
|
6
|
.title.f-row
|
|
7
|
|
- h3(v-if="!isSearch") {{ type }}s
|
|
8
|
|
- h3(v-else-if="!hasSubtype") {{ type }}: {{ $route.query.type }}s
|
|
9
|
|
- h3(v-else-if="isSearch") Search results for: {{$route.query.s }}
|
|
10
|
|
- h3(v-else) {{ type }}s
|
|
|
7
|
+ h3(v-if="!isSearch && !hasSubtype") {{ type }}s
|
|
|
8
|
+ h3(v-else-if="hasSubtype") {{ type }}s: {{ $route.query.type }}
|
|
|
9
|
+ h3(v-else) Search results for: {{$route.query.s }}
|
|
11
|
10
|
span(v-if="sortBy")
|
|
12
|
11
|
h3 {{ sortBy.replace('-', ' ') }}
|
|
13
|
12
|
|
|
|
@@ -181,14 +180,17 @@ export default {
|
|
181
|
180
|
// _setHeroInfo(post) {} from mixin
|
|
182
|
181
|
// _clearHero(store) {} from mixin
|
|
183
|
182
|
async checkAndSetHero(type) {
|
|
184
|
|
- console.log('hero type :', type)
|
|
|
183
|
+ // console.log('hero type :', type)
|
|
185
|
184
|
this._clearHero(this.$store)
|
|
186
|
185
|
try {
|
|
187
|
186
|
const page = await this.getPage(type)
|
|
188
|
187
|
// We always set a hero no matter what
|
|
189
|
188
|
// Because the hero component will deal
|
|
190
|
189
|
// with how to render based on hero.url
|
|
191
|
|
- this.$store.commit('SET_HERO', this._setHeroInfo(page))
|
|
|
190
|
+ const heroJson = this._setHeroInfo(page)
|
|
|
191
|
+ heroJson.subtype = this.$route.query.type
|
|
|
192
|
+ console.log(heroJson)
|
|
|
193
|
+ this.$store.commit('SET_HERO', heroJson)
|
|
192
|
194
|
} catch (err) { console.error(err) }
|
|
193
|
195
|
},
|
|
194
|
196
|
setIntersectionLoader(cb) {
|