From 236582b5a14855ad57162324e6170d15e5bb37e2 Mon Sep 17 00:00:00 2001 From: Josh Mcguigan Date: Fri, 6 Jul 2018 04:39:34 -0700 Subject: [PATCH] Corrected formatting of next and previous links in blog post template --- src/templates/blog-post.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/templates/blog-post.js b/src/templates/blog-post.js index 1231b3d..1b649bc 100644 --- a/src/templates/blog-post.js +++ b/src/templates/blog-post.js @@ -43,21 +43,22 @@ class BlogPostTemplate extends React.Component { padding: 0, }} > - {previous && ( -
  • +
  • + { + previous && ← {previous.frontmatter.title} -
  • - )} - - {next && ( -
  • + } +
  • +
  • + { + next && {next.frontmatter.title} → -
  • - )} + } + )