We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0757689 commit c9c103bCopy full SHA for c9c103b
projects/postbox/index.html
@@ -65,13 +65,16 @@ <h3>Create a New Post</h3>
65
const postElement = document.createElement("div");
66
postElement.classList.add("post-item");
67
68
+ // Now, each post is wrapped with an anchor tag linking to post.html#<ID>
69
postElement.innerHTML = `
70
<div class="post-meta">
71
<span>Posted by <a href="user.html#${post.user}">${post.username}</a></span>
72
<p>Posted on ${post.posted}</p>
73
</div>
- <h4>${post.title}</h4>
74
- <p>${post.content}</p>
+ <a href="post.html#${post.id}">
75
+ <h4>${post.title}</h4>
76
+ <p>${post.content}</p>
77
+ </a>
78
${imageHTML}
79
`;
80
0 commit comments