We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6ac931 commit 339a34cCopy full SHA for 339a34c
layout/_macro/post.swig
@@ -3,7 +3,9 @@
3
{% set headlessPost = Array.prototype.indexOf.call(['quote', 'picture'], post.type) > -1 %}
4
5
{% set post_class = 'post post-type-' + post.type | default('normal') %}
6
- {% set post_class = post_class + ' ' + post_extra_class | default('') %}
+ {% if post_extra_class > 0 %}
7
+ {% set post_class = post_class + ' ' + post_extra_class | default('') %}
8
+ {% endif %}
9
{% if post.sticky > 0 %}
10
{% set post_class = post_class + ' ' + 'post-sticky' %}
11
{% endif %}
0 commit comments