Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
chandrikadeb7 committed Apr 14, 2024
1 parent f863a85 commit 937e8b9
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 39 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
78 changes: 39 additions & 39 deletions src/templates/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,49 +35,49 @@ const StyledPostContent = styled.div`
}
`;

// const PostTemplate = ({ data, location }) => {
// const { frontmatter, html } = data.markdownRemark;
// const { title, date, tags } = frontmatter;
const PostTemplate = ({ data, location }) => {
const { frontmatter, html } = data.markdownRemark;
const { title, date, tags } = frontmatter;

// return (
// <Layout location={location}>
// <Helmet>
// <title>{title} | Chandrika Deb</title>
// <link rel="canonical" href="https://chandrikadeb7.github.io/pensieve" />
// </Helmet>
return (
<Layout location={location}>
<Helmet>
<title>{title} | Chandrika Deb</title>
<link rel="canonical" href="https://chandrikadeb7.github.io/pensieve" />
</Helmet>

// <StyledPostContainer>
// <span className="breadcrumb">
// <span className="arrow">&larr;</span>
// <Link to="/pensieve">All memories</Link>
// </span>
<StyledPostContainer>
<span className="breadcrumb">
<span className="arrow">&larr;</span>
<Link to="/pensieve">All memories</Link>
</span>

// <StyledPostHeader>
// <h1 className="medium-title">{title}</h1>
// <p className="subtitle">
// <time>
// {new Date(date).toLocaleDateString('en-US', {
// year: 'numeric',
// month: 'long',
// day: 'numeric',
// })}
// </time>
// <span>&nbsp;&mdash;&nbsp;</span>
// {tags &&
// tags.length > 0 &&
// tags.map((tag, i) => (
// <Link key={i} to={`/pensieve/tags/${kebabCase(tag)}/`} className="tag">
// #{tag}
// </Link>
// ))}
// </p>
// </StyledPostHeader>
<StyledPostHeader>
<h1 className="medium-title">{title}</h1>
<p className="subtitle">
<time>
{new Date(date).toLocaleDateString('en-US', {
year: 'numeric',
month: 'long',
day: 'numeric',
})}
</time>
<span>&nbsp;&mdash;&nbsp;</span>
{tags &&
tags.length > 0 &&
tags.map((tag, i) => (
<Link key={i} to={`/pensieve/tags/${kebabCase(tag)}/`} className="tag">
#{tag}
</Link>
))}
</p>
</StyledPostHeader>

// <StyledPostContent dangerouslySetInnerHTML={{ __html: html }} />
// </StyledPostContainer>
// </Layout>
// );
// };
<StyledPostContent dangerouslySetInnerHTML={{ __html: html }} />
</StyledPostContainer>
</Layout>
);
};

export default PostTemplate;

Expand Down

0 comments on commit 937e8b9

Please sign in to comment.