From a9b60609b6022deea0201fc797657484cb8b6de4 Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Wed, 10 Jan 2018 07:41:31 -0800 Subject: [PATCH] Format --- src/templates/blog-post.js | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/src/templates/blog-post.js b/src/templates/blog-post.js index 23d878f..1231b3d 100644 --- a/src/templates/blog-post.js +++ b/src/templates/blog-post.js @@ -10,7 +10,7 @@ class BlogPostTemplate extends React.Component { render() { const post = this.props.data.markdownRemark const siteTitle = get(this.props, 'data.site.siteMetadata.title') - const { previous, next } = this.props.pathContext; + const { previous, next } = this.props.pathContext return (
@@ -34,28 +34,30 @@ class BlogPostTemplate extends React.Component { /> -
    - { previous && ( +
      + {previous && (
    • ← {previous.frontmatter.title}
    • - ) } + )} - { next && ( -
    • - - {next.frontmatter.title} → - -
    • - ) } + {next && ( +
    • + + {next.frontmatter.title} → + +
    • + )}
)