Skip to content

Commit

Permalink
Apply site cover image if there is one, fixes #75
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddarnes committed Aug 13, 2019
1 parent 86b6536 commit 832327c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/common/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const DefaultLayout = ({ data, children, bodyClass, isHome }) => {

<div className="viewport-top">
{/* The main header section on top of the screen */}
<header className="site-head">
<header className="site-head" style={{ ...site.cover_image && { backgroundImage: `url(${site.cover_image})` } }}>
<div className="container">
<div className="site-mast">
<div className="site-mast-left">
Expand Down
7 changes: 2 additions & 5 deletions src/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,8 @@ h6 {
padding-bottom: 20px;
color: #fff;
background: var(--color-base);
background-position: center;
background-size: cover;
}

.site-nav-item {
Expand Down Expand Up @@ -698,7 +700,6 @@ h6 {
.site-mast-right {
display: flex;
align-items: center;
margin: 0 -10px 0 20px;
}

.site-mast-right .site-nav-item:last-child {
Expand Down Expand Up @@ -739,10 +740,6 @@ h6 {
margin: 0 20px 0 -10px;
}

.site-nav-right {
margin: 0 -10px 0 20px;
}

.site-nav-button {
display: inline-block;
padding: 5px 10px;
Expand Down

0 comments on commit 832327c

Please sign in to comment.