mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-27 07:18:17 +01:00
Fix format
This commit is contained in:
parent
1dd12522e5
commit
448541831f
@ -19,7 +19,7 @@ class Disqus extends Component {
|
|||||||
this.setState({ toasts });
|
this.setState({ toasts });
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
const { postNode, shortName, url:siteUrl } = this.props;
|
const { postNode, shortName, url: siteUrl } = this.props;
|
||||||
const post = postNode.frontmatter;
|
const post = postNode.frontmatter;
|
||||||
const url = siteUrl + postNode.fields.slug;
|
const url = siteUrl + postNode.fields.slug;
|
||||||
return (
|
return (
|
||||||
|
@ -32,7 +32,7 @@ class PostTemplateDetails extends React.Component {
|
|||||||
|
|
||||||
const commentsBlock = (
|
const commentsBlock = (
|
||||||
<div>
|
<div>
|
||||||
<Disqus postNode={post} shortName={disqusShortname} url={url}/>
|
<Disqus postNode={post} shortName={disqusShortname} url={url} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ class CategoryTemplate extends React.Component {
|
|||||||
render() {
|
render() {
|
||||||
const title = this.props.data.site.siteMetadata.title;
|
const title = this.props.data.site.siteMetadata.title;
|
||||||
const category = this.props.pathContext.category;
|
const category = this.props.pathContext.category;
|
||||||
const posts = this.props.data.allMarkdownRemark.edges
|
const posts = this.props.data.allMarkdownRemark.edges;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
@ -12,7 +12,7 @@ class TagTemplate extends React.Component {
|
|||||||
<div>
|
<div>
|
||||||
<Helmet title={`All Posts tagged as "${tag}" - ${title}`} />
|
<Helmet title={`All Posts tagged as "${tag}" - ${title}`} />
|
||||||
<Sidebar siteMetadata={this.props.data.site.siteMetadata} />
|
<Sidebar siteMetadata={this.props.data.site.siteMetadata} />
|
||||||
<TagTemplateDetails posts={this.props.data.allMarkdownRemark.edges} tag={tag}/>
|
<TagTemplateDetails posts={this.props.data.allMarkdownRemark.edges} tag={tag} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user