We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33eb628 commit bfb0489Copy full SHA for bfb0489
templates/blog-post.html
@@ -3,9 +3,15 @@
3
{% block header %}{{ this.parent.title }}{% endblock %}
4
{% block body %}
5
<h2 class="mb-0">{{ this.title }}</h2>
6
-<p class="meta mt-0 mb-0"><span class="text-muted">Categories: </span>{% for category in this.categories %}
7
- <a href="#">{{category}}</a>{{ "," if not loop.last}}
8
- {% endfor %}</p>
9
<p class="meta text-muted mt-0">by {{ this.author }} on {{ this.pub_date|dateformat('full') }}</p>
10
<div class="body">{{ this.body }}</div>
+<hr>
+<p class="meta mt-0 mb-0"><span class="text-muted">Categories: </span>
+ {% if this.categories|length %}
11
+ {% for category in this.categories %}
12
+ <a href="#">{{category}}</a>{{ "," if not loop.last}}
13
+ {% endfor %}</p>
14
+ {% else %}
15
+ none
16
+ {% endif %}
17
{% endblock %}
0 commit comments