Skip to content

Commit 4f44b61

Browse files
authored
Update post.html for checkable checkboxes based on https://thatgurjot.com/til/clickable-checkboxes-on-jekyll-hugo/
1 parent 4845970 commit 4f44b61

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

_layouts/post.html

+9
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,12 @@ <h1>{{ page.title }}</h1>
1515

1616
{% include disqus.html %}
1717
</article>
18+
19+
<script>
20+
document.addEventListener('DOMContentLoaded', (event) => {
21+
const checkboxes = document.querySelectorAll('input[type="checkbox"]');
22+
checkboxes.forEach(checkbox => {
23+
checkbox.removeAttribute('disabled');
24+
});
25+
});
26+
</script>

0 commit comments

Comments
 (0)