Refactor if expression for content--divided class

This commit is contained in:
Helen Chong 2024-04-15 20:32:19 +08:00
parent 467cc87a53
commit d5aa4cae35
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ layout: main/base
{% include "toc.njk" %} {% include "toc.njk" %}
{% endif %} {% endif %}
<div class="content{% if contentIsDivided %} content--divided{% endif %}"> <div class="content {{'content--divided' if contentIsDivided }}">
{{ content | safe }} {{ content | safe }}
</div> </div>
</div> </div>