Skip to content

Commit

Permalink
FIX: post extra class condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-nginx committed Jul 31, 2017
1 parent a6ac931 commit 339a34c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layout/_macro/post.swig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
{% set headlessPost = Array.prototype.indexOf.call(['quote', 'picture'], post.type) > -1 %}

{% set post_class = 'post post-type-' + post.type | default('normal') %}
{% set post_class = post_class + ' ' + post_extra_class | default('') %}
{% if post_extra_class > 0 %}
{% set post_class = post_class + ' ' + post_extra_class | default('') %}
{% endif %}
{% if post.sticky > 0 %}
{% set post_class = post_class + ' ' + 'post-sticky' %}
{% endif %}
Expand Down

0 comments on commit 339a34c

Please sign in to comment.