Skip to content

Commit

Permalink
Change default layout for blog post
Browse files Browse the repository at this point in the history
  • Loading branch information
achekulaev committed Nov 20, 2019
1 parent 5f15bbd commit 73fcb1e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
11 changes: 10 additions & 1 deletion src/assets/scss/layout/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@

/* Main */

#blog-post {
#main {
padding: 20px;
}
h1 {
text-align: center;
}
}

#main {
@include color(invert);
border-radius: _size(border-radius-main);
Expand Down Expand Up @@ -96,4 +105,4 @@
}
}
}
}
}
7 changes: 4 additions & 3 deletions src/posts/updated-to-1.13/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ date: "2019-11-19T22:00:00.000Z"
path: "/updated-to-1.13/"
---

# You have updated Docksal to 1.13
# You have updated Docksal to 1.13!

Exciting! Let's see what's new!
Exciting times! Let's see what's new.

## macOS

- NFS is now default volumes
- NFS is now default for `DOCKSAL_VOLUMES`
- But we forcibly set it to `bind` during update so that nothing break

## windows

Expand Down
12 changes: 8 additions & 4 deletions src/templates/blog-post.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
import React from 'react'
import Helmet from 'react-helmet'
import NavSubpages from '../components/NavSubpages'
import Link from 'gatsby-link'
import get from 'lodash/get'

class BlogPostTemplate extends React.Component {
render() {
const post = this.props.data.markdownRemark
const siteTitle = get(this.props, 'data.site.siteMetadata.title')
const post = this.props.data.markdownRemark;
const siteTitle = get(this.props, 'data.site.siteMetadata.title');

return (
<div>
<div id={`blog-post`}>
<div>&nbsp;</div>
<Helmet title={`${post.frontmatter.title} | ${siteTitle}`} />
<NavSubpages sticky={false} />

<h1>{post.frontmatter.title}</h1>
<div dangerouslySetInnerHTML={{ __html: post.html }} />
<div id={`main`} dangerouslySetInnerHTML={{ __html: post.html }} />
</div>
)
}
Expand Down

0 comments on commit 73fcb1e

Please sign in to comment.