Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaikant committed Jan 8, 2019
1 parent 72885c4 commit acb92e7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/components/Layout/blogposts.js
Expand Up @@ -112,6 +112,7 @@ const BlogCard = styled.div`
`;

const NavLink = props => {
console.log("props are ", props)
if (!props.test) {
return <Link to={props.url}>{props.text}</Link>;
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/index.js
Expand Up @@ -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 {
Expand Down
7 changes: 5 additions & 2 deletions src/templates/blogcontentful.js
Expand Up @@ -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,
Expand Down

0 comments on commit acb92e7

Please sign in to comment.