fix: hide comments button if post has comments disabled
This commit is contained in:
parent
85c1c72cc4
commit
b5e060e8ae
1 changed files with 3 additions and 0 deletions
|
@ -248,12 +248,15 @@
|
|||
(text "{%- endif %}")
|
||||
(div
|
||||
("class" "flex gap-1 buttons_box")
|
||||
(text "{% if post.context.comments_enabled %}")
|
||||
(a
|
||||
("href" "/post/{{ post.id }}")
|
||||
("class" "button camo small")
|
||||
(text "{{ icon \"message-circle\" }}")
|
||||
(span
|
||||
(text "{{ post.comment_count }}")))
|
||||
(text "{% endif %}")
|
||||
|
||||
(a
|
||||
("href" "/post/{{ post.id }}")
|
||||
("class" "button camo small")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue