diff --git a/javascript/post.js b/javascript/post.js index 3ac2ecd..f98d0f8 100644 --- a/javascript/post.js +++ b/javascript/post.js @@ -9,7 +9,7 @@ fetch("/pages/blog/"+search+".json").then(response => response.json()).then(data postSubTitle.textContent = data.subTitle; postDate.textContent = "Posted: " + data.date; postText.textContent = data.postText; -}).catch(error => console.error("Error Fetching Json"));post = JSON.parse(postContent) +}).catch(error => console.error("Error Fetching Json"));