Skip to content
Snippets Groups Projects
Commit 3a6f56c1 authored by Kevin Lin's avatar Kevin Lin :sparkles:
Browse files

_layouts: Do not render module-body without content

parent d159840a
No related branches found
No related tags found
No related merge requests found
......@@ -8,14 +8,19 @@
<div class="module-header">
{{ day.topic | markdownify | remove: '<p>' | remove: '</p>' }}
</div>
{% if day.description != nil %}
<div class="module-body">
{{ day.description | markdownify }}
</div>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
{% assign content_strip = content | strip %}
{% if content_strip != "" %}
<div class="module-body">
{{ content }}
</div>
{% endif %}
</section>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment