Skip to content

Commit 4a95570

Browse files
authored
Merge pull request creativecommons#55 from makkoncept/master
change blog-post.html to show post categories in UI. creativecommons#51
2 parents 59b2166 + 4485dc6 commit 4a95570

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

templates/blog-post.html

+11-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
{% block header %}{{ this.parent.title }}{% endblock %}
44
{% block body %}
55
<h2 class="mb-0">{{ this.title }}</h2>
6-
<p class="meta text-muted mt-0">by {{ this.author }} on {{ this.pub_date|dateformat('full') }}
6+
<p class="meta text-muted mt-0">by {{ this.author }} on {{ this.pub_date|dateformat('full') }}</p>
77
<div class="body">{{ this.body }}</div>
8-
{% endblock %}
8+
<hr>
9+
<p class="meta mt-0 mb-0"><span class="text-muted">Categories: </span>
10+
{% if this.categories|length %}
11+
{% for category in this.categories %}
12+
<a href="#">{{ category }}</a>{{ "," if not loop.last }}
13+
{% endfor %}
14+
{% else %}
15+
none
16+
{% endif %}</p>
17+
{% endblock %}

0 commit comments

Comments
 (0)