From acb92e7b92805ee54702c575e5760123d8766b63 Mon Sep 17 00:00:00 2001 From: Jai Kumaran Date: Tue, 8 Jan 2019 23:05:11 +0530 Subject: [PATCH] clean up --- src/components/Layout/blogposts.js | 1 + src/layouts/index.js | 2 +- src/templates/blogcontentful.js | 7 +++++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/Layout/blogposts.js b/src/components/Layout/blogposts.js index ef9dc4f..121f39c 100644 --- a/src/components/Layout/blogposts.js +++ b/src/components/Layout/blogposts.js @@ -112,6 +112,7 @@ const BlogCard = styled.div` `; const NavLink = props => { + console.log("props are ", props) if (!props.test) { return {props.text}; } else { diff --git a/src/layouts/index.js b/src/layouts/index.js index 2717ffa..e67ab16 100644 --- a/src/layouts/index.js +++ b/src/layouts/index.js @@ -29,7 +29,7 @@ injectGlobal` a:hover { cursor: pointer; text-decoration: none; - color: ${colors.tech47hover}; + color: ${colors.gray.calm}; transition: color 0.15s ease-in; }; h1, h2, h3, h4, h5, h6 { diff --git a/src/templates/blogcontentful.js b/src/templates/blogcontentful.js index 90e2a1e..c5c3655 100644 --- a/src/templates/blogcontentful.js +++ b/src/templates/blogcontentful.js @@ -28,8 +28,11 @@ const ContentfulBlogIndex = ({ data, location, pageContext }) => { // const { edges: posts } = data.allMarkdownRemark; // The below objects are coming from gatsby-paginate const { group, index, first, last, pathPrefix } = pageContext; - const previousUrl = index - 1 == 1 ? "/" : "/" + (index - 1).toString(); - const nextUrl = "/" + (index + 1).toString(); + console.log("pathPrefix is ", pathPrefix) + const previousUrl = index - 1 == 1 ? "/" + pathPrefix : pathPrefix + "/" + (index - 1).toString(); + console.log("previousUrl is ", previousUrl) + + const nextUrl = pathPrefix + "/" + (index + 1).toString(); const cursor = { show: true, blink: true,