Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
computerblade-official committed Jan 4, 2025
1 parent 174dd1c commit 0d257d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ async function getPostData(id) {
console.log(mp);
id -= 1;
postTitleTag.innerHTML = mp[id]['title'];
postImgTag.src = mp[id]['img'];
postImgTag.src = './public/posts/' + mp[id]['img'];
postDateTag.innerHTML = mp[id]['date'];
postAuthorTag.innerHTML = mp[id]['author'];
postContentTag.innerHTML = mp[id]['body'];
Expand Down

0 comments on commit 0d257d3

Please sign in to comment.