Skip to content

Commit aefda74

Browse files
committed
fix: conditionally render comments based on page settings
1 parent 910f31c commit aefda74

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

layout/_partial/after-footer.ejs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,9 @@
353353
window.addEventListener('lightbox:ready', pswp);
354354
}
355355
</script>
356-
<%- partial('post/comment', null, { cache: true }) %>
356+
<% if (page.comments !== false) { %>
357+
<%- partial('post/comment', null, { cache: true }) %>
358+
<% } %>
357359
<% } %>
358360
</div>
359361
</div>

0 commit comments

Comments
 (0)