aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/cms-preview-templates/components/jumbotron.js
diff options
context:
space:
mode:
authorMathias Biilmann Christensen <info@mathias-biilmann.net>2017-12-07 00:21:51 -0800
committerBenaiah Mischenko <benaiah@mischenko.com>2017-12-07 01:43:09 -0800
commitd91206659bd17c190e2940a2c564f371cafc7ebc (patch)
tree3ae40f7a9c2668fb4ffaaa7fdd2746e8e5ccb267 /src/js/cms-preview-templates/components/jumbotron.js
parent3dc23ec6642f8238a9bb3e618544108cddcf2791 (diff)
Update hugo and content structure; add home page to CMS
This updates to hugo v0.31 It also adapts the content model to follow the convention for sections with _index.md files and makes the home page a fully editable section
Diffstat (limited to 'src/js/cms-preview-templates/components/jumbotron.js')
-rw-r--r--src/js/cms-preview-templates/components/jumbotron.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js/cms-preview-templates/components/jumbotron.js b/src/js/cms-preview-templates/components/jumbotron.js
index cb14df9..128a51e 100644
--- a/src/js/cms-preview-templates/components/jumbotron.js
+++ b/src/js/cms-preview-templates/components/jumbotron.js
@@ -2,7 +2,7 @@ import React from "react";
export default class Jumbotron extends React.Component {
render() {
- const {image, title} = this.props;
+ const {image, title, subtitle} = this.props;
return <div>
<div className="pv5 pv6-l ph3 bg-center cover" style={{
backgroundImage: image && `url(${image})`
@@ -15,6 +15,7 @@ export default class Jumbotron extends React.Component {
</h1>
</div>
<div className="mw7 relative bg-fix-primary">
+ {subtitle && <p className="b f4 di lh-title mb3 white mw6 bg-primary">{ subtitle }</p>}
</div>
</div>
</div>