|
|
@@ -8,17 +8,8 @@
|
|
8
|
8
|
article(v-else).w-max.f-grow.shadow
|
|
9
|
9
|
header
|
|
10
|
10
|
//- breadcrumb links at top of page, needs link routing
|
|
11
|
|
- breadcrumb.f-row.start.t-up
|
|
12
|
|
- router-link(v-if="['events','exhibitions'].includes(type)" :to="`/${type}/by-current-and-upcoming`")
|
|
13
|
|
- h5.t-up {{ type }}
|
|
14
|
|
- router-link(v-else :to="`/${type}`")
|
|
15
|
|
- h5.t-up {{ type }}
|
|
16
|
|
- //- h5 •
|
|
17
|
|
- h5 >
|
|
18
|
|
- router-link(:to="`/${type}/${post.slug}`")
|
|
19
|
|
- h5 {{ post.title }}
|
|
|
11
|
+ breadcrumb(:type="type" :post="post")
|
|
20
|
12
|
|
|
21
|
|
- //- h1 {{ type }}:{{ $route.params.slug }} {{ post.title }}
|
|
22
|
13
|
h1.t-b {{ post.title }}
|
|
23
|
14
|
//- p(v-if="post.categories") categories: {{ post.categories }}
|
|
24
|
15
|
//- p(v-if="post.type") type: {{ post.type }}
|
|
|
@@ -52,13 +43,14 @@ import card from '@/components/card.vue'
|
|
52
|
43
|
import sidebar from '@/components/sidebars/sidebar'
|
|
53
|
44
|
import gallery from '@/components/gallery/'
|
|
54
|
45
|
import credits from '@/components/credits'
|
|
|
46
|
+import breadcrumb from '@/components/breadcrumb'
|
|
55
|
47
|
|
|
56
|
48
|
import { postTypeGetters, scrollTop } from './mixin-post-types'
|
|
57
|
49
|
|
|
58
|
50
|
import { convertTitleCase, dePluralize, typeFromRoute } from '@/utils/helpers'
|
|
59
|
51
|
|
|
60
|
52
|
export default {
|
|
61
|
|
- components: { sidebar, gallery, credits, card },
|
|
|
53
|
+ components: { sidebar, gallery, credits, card, breadcrumb },
|
|
62
|
54
|
props: {
|
|
63
|
55
|
sidebar: { type: Boolean },
|
|
64
|
56
|
id: { type: Number }
|
|
|
@@ -150,9 +142,9 @@ export default {
|
|
150
|
142
|
* @param {object} posts
|
|
151
|
143
|
*/
|
|
152
|
144
|
checkAndSetHero(post) {
|
|
153
|
|
- // console.log(post)
|
|
154
|
145
|
if(!post) return
|
|
155
|
|
- let json = { url: post.featured, heroType: 'image' }
|
|
|
146
|
+
|
|
|
147
|
+ const json = { url: post.featured, heroType: 'image' }
|
|
156
|
148
|
if(post.hero && JSON.parse(post.hero) && JSON.parse(post.hero).url) {
|
|
157
|
149
|
json = JSON.parse(post.hero)
|
|
158
|
150
|
json.heroType = 'video'
|
|
|
@@ -161,6 +153,9 @@ export default {
|
|
161
|
153
|
if(!json.url) {
|
|
162
|
154
|
json.heroType = null
|
|
163
|
155
|
}
|
|
|
156
|
+ // Set the hero text to the post title
|
|
|
157
|
+ json.text = post.title
|
|
|
158
|
+
|
|
164
|
159
|
this.$store.commit('SET_HERO', json)
|
|
165
|
160
|
},
|
|
166
|
161
|
|