Skip to content

Commit

Permalink
Fixed up blogs! :D
Browse files Browse the repository at this point in the history
  • Loading branch information
computerblade-official committed Jan 4, 2025
1 parent 76e80fa commit 2723dcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ async function getPostData(id) {
id -= 1;
postTitleTag.innerHTML = mp[id]['title'];
postImgTag.src = './public/posts/' + mp[id]['img'];
postImgTag.alt = mp[id]['title'];
postDateTag.innerHTML = mp[id]['date'];
postAuthorTag.innerHTML = mp[id]['author'];
postContentTag.innerHTML = DOMPurify.sanitize(marked.parse(mp[id]['body'].toString()));
Expand Down
1 change: 1 addition & 0 deletions post.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<main class="content">
<article class="post full-post">
<h1 id="postTitle">Post Title</h1>
<br>
<img
src="${parsed.img}"
alt="${parsed.title}"
Expand Down

0 comments on commit 2723dcc

Please sign in to comment.