Skip to content

Commit

Permalink
Merge pull request #734 from chawdamrunal/main
Browse files Browse the repository at this point in the history
Update blog.js
  • Loading branch information
anuragverma108 authored Oct 20, 2024
2 parents cb5acfa + ce12ce7 commit e837057
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions assets/js/blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ const blogs = [
blogCard.classList.add("blog-card");

blogCard.innerHTML = `
<a href="${blog.link}">
<img src="${blog.image}" alt="${blog.title}" />
<h3>${blog.title}</h3>
<p>${blog.description}</p>
</a>
`;
<a href="${escapeHTML(blog.link)}">
<img src="${escapeHTML(blog.image)}" alt="${escapeHTML(blog.title)}" />
<h3>${escapeHTML(blog.title)}</h3>
<p>${escapeHTML(blog.description)}</p>
</a>
`;

blogList.appendChild(blogCard);
});
Expand All @@ -36,4 +36,4 @@ const blogs = [
// Call the function to display blogs when the page loads
window.onload = displayBlogs;



1 change: 1 addition & 0 deletions signin.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ <h1>Welcome to <span class="brand">SkillWise</span></h1>
<p><strong>Sign in</strong> to access your learning dashboard</p>

<form action="#" method="POST">
{% csrf_token %}
<div class="input-group">
<label for="username">Username</label>
<input type="text" id="username" name="username" placeholder="Enter your username" required>
Expand Down

0 comments on commit e837057

Please sign in to comment.