Fix format

This commit is contained in:
Yanda Huang 2018-05-06 15:43:52 -04:00
parent 1dd12522e5
commit 448541831f
5 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@ class Disqus extends Component {
this.setState({ toasts });
}
render() {
const { postNode, shortName, url:siteUrl } = this.props;
const { postNode, shortName, url: siteUrl } = this.props;
const post = postNode.frontmatter;
const url = siteUrl + postNode.fields.slug;
return (

View File

@ -32,7 +32,7 @@ class PostTemplateDetails extends React.Component {
const commentsBlock = (
<div>
<Disqus postNode={post} shortName={disqusShortname} url={url}/>
<Disqus postNode={post} shortName={disqusShortname} url={url} />
</div>
);

View File

@ -78,4 +78,4 @@ export const conponentQuery = graphql`
vk
}
}
`;
`;

View File

@ -7,7 +7,7 @@ class CategoryTemplate extends React.Component {
render() {
const title = this.props.data.site.siteMetadata.title;
const category = this.props.pathContext.category;
const posts = this.props.data.allMarkdownRemark.edges
const posts = this.props.data.allMarkdownRemark.edges;
return (
<div>

View File

@ -12,7 +12,7 @@ class TagTemplate extends React.Component {
<div>
<Helmet title={`All Posts tagged as "${tag}" - ${title}`} />
<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>
);
}