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 a33f40c commit 72885c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React from 'react';
import styled from 'react-emotion';
import Helmet from 'react-helmet';
import favicon from '../assets/images/tech47-favicon2.png';
import tech from '../assets/images/tech.svg';
import tech47 from '../assets/images/Tech47.svg';

Expand Down Expand Up @@ -27,6 +29,11 @@ const Labels = styled.div`

const Index = () => (
<MainDiv>
<Helmet title={`Tech47 - React.js, GraphQL, Node.js`}>
<link rel="shortcut icon" href={favicon} type="image/x-icon" />
<link rel="icon" href={favicon} type="image/x-icon" />
</Helmet>

<img src={tech47} width="120" alt="Logo" />
<img src={tech} width="120" alt="Logo" />
<Labels>
Expand Down
4 changes: 2 additions & 2 deletions src/templates/blogcontentful.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ 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 ? pathPrefix : pathPrefix + "/" + (index - 1).toString();
const nextUrl = pathPrefix + "/" + (index + 1).toString();
const previousUrl = index - 1 == 1 ? "/" : "/" + (index - 1).toString();
const nextUrl = "/" + (index + 1).toString();
const cursor = {
show: true,
blink: true,
Expand Down

0 comments on commit 72885c4

Please sign in to comment.