Skip to content

Commit 1f637af

Browse files
committed
change blog-post.html to show post categories in UI. creativecommons#51
1 parent 427452e commit 1f637af

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

templates/blog-post.html

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
{% block title %}{{ this.title }}{% endblock %}
33
{% block header %}{{ this.parent.title }}{% endblock %}
44
{% block body %}
5-
<h2 class="mb-0">{{ this.title }}</h2>
6-
<p class="meta text-muted mt-0">by {{ this.author }} on {{ this.pub_date|dateformat('full') }}
7-
<div class="body">{{ this.body }}</div>
8-
{% endblock %}
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>
11+
{% endblock %}

0 commit comments

Comments
 (0)