diff --git a/src/components/post-link.js b/src/components/post-link.js
index 59a2cca..4cce7b0 100644
--- a/src/components/post-link.js
+++ b/src/components/post-link.js
@@ -7,17 +7,21 @@ const PostLink = ({ post }) => {
const postDate = new Date(post.frontmatter.date)
const options = { year: 'numeric', month: 'long', day: 'numeric' };
const postDateString = postDate.toLocaleDateString('en', options);
+ const postUrl = "/posts/" + post.fileAbsolutePath.split('/').pop().split(".")[0]
return (
-
-
+
+
)
}
diff --git a/src/pages/blog.js b/src/pages/blog.js
index 874e40f..3ad62ed 100644
--- a/src/pages/blog.js
+++ b/src/pages/blog.js
@@ -17,6 +17,7 @@ const IndexPage = () => {
edges {
node {
id
+ fileAbsolutePath
excerpt
frontmatter {
date
diff --git a/src/styles/post-link.module.scss b/src/styles/post-link.module.scss
index cac2c63..c1680a8 100644
--- a/src/styles/post-link.module.scss
+++ b/src/styles/post-link.module.scss
@@ -2,6 +2,7 @@
.postDate {
float: right;
+ color: $white;
}
.postTitle {
@@ -25,6 +26,11 @@
padding: 20px;
background-color: $black;
margin-bottom: 20px;
+
+ p {
+ text-decoration: none;
+ color: $white;
+ }
}
.postExcerpt {