|
|
@@ -62,13 +62,19 @@ const heroUtils = {
|
|
62
|
62
|
json.text = post && post.content ? post.content : post.title
|
|
63
|
63
|
|
|
64
|
64
|
// hero title for non-list pages: center, about etc - needs a better method
|
|
65
|
|
- if (post.type === 'page' && post.slug === 'center' ) { json.text = post.title }
|
|
66
|
|
- if (post.type === 'page' && post.slug === 'about' ) { json.text = post.title }
|
|
67
|
|
- if (post.type === 'page' && post.slug === 'contact' ) { json.text = post.title }
|
|
68
|
|
- if (post.type === 'page' && post.slug === 'mission' ) { json.text = post.title }
|
|
69
|
|
- if (post.type === 'page' && post.slug === 'staff' ) { json.text = post.title }
|
|
70
|
|
- if (post.type === 'page' && post.slug === 'board' ) { json.text = post.title }
|
|
71
|
|
- if (post.type === 'page' && post.slug === 'join-our-mailing-list' ) { json.text = post.title }
|
|
|
65
|
+ if (
|
|
|
66
|
+ post.type == 'page' && post.slug == 'center' ||
|
|
|
67
|
+ post.type == 'page' && post.slug == 'about' ||
|
|
|
68
|
+ post.type == 'page' && post.slug == 'contact' ||
|
|
|
69
|
+ post.type == 'page' && post.slug == 'mission' ||
|
|
|
70
|
+ post.type == 'page' && post.slug == 'staff' ||
|
|
|
71
|
+ post.type == 'page' && post.slug == 'board' ||
|
|
|
72
|
+ post.type == 'page' && post.slug == 'join-our-mailing-list'
|
|
|
73
|
+ ) {
|
|
|
74
|
+ json.text = post.title
|
|
|
75
|
+ }
|
|
|
76
|
+
|
|
|
77
|
+ // post.type == 'page' && post.slug == 'thing' || post.type == 'page' && post.slug == 'otherthing'
|
|
72
|
78
|
|
|
73
|
79
|
return json
|
|
74
|
80
|
},
|