summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan DeMasi <jon.demasi@colorado.edu>2020-03-03 09:33:32 -0700
committerJonathan DeMasi <jon.demasi@colorado.edu>2020-03-03 09:33:32 -0700
commit4afaffdb625913cc37ea6a75733207d76b1d2c25 (patch)
treea95f5a6ae2d1e52d2dbaecfe107e8de62db0ed2d
parentc68dea1afc7763ea3e552719f06fe450b47e4cbe (diff)
downloadjthanio-4afaffdb625913cc37ea6a75733207d76b1d2c25.tar
jthanio-4afaffdb625913cc37ea6a75733207d76b1d2c25.tar.gz
jthanio-4afaffdb625913cc37ea6a75733207d76b1d2c25.tar.bz2
jthanio-4afaffdb625913cc37ea6a75733207d76b1d2c25.tar.lz
jthanio-4afaffdb625913cc37ea6a75733207d76b1d2c25.tar.xz
jthanio-4afaffdb625913cc37ea6a75733207d76b1d2c25.tar.zst
jthanio-4afaffdb625913cc37ea6a75733207d76b1d2c25.zip
category display fixed
-rw-r--r--blog/templates/blog/blog_post.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/blog/templates/blog/blog_post.html b/blog/templates/blog/blog_post.html
index f65bce1..87de8eb 100644
--- a/blog/templates/blog/blog_post.html
+++ b/blog/templates/blog/blog_post.html
@@ -16,7 +16,7 @@
<h1 class="mt-4">{{ page.title }}</h1>
<!-- Date/Time -->
{% with categories=page.categories.all %}
- <p>Posted on {{ page.date }}{% if categories %} in {% for category in categories %}{{ category.name }}, {% endfor %} {% endif %}</p>
+ <p>Posted on {{ page.date }}{% if categories %} in {{ categories|join:", " }}{% endif %}</p>
{% endwith %}
<hr>
@@ -69,4 +69,4 @@
<p><a href="{{ page.get_parent.url }}">Return to blog</a></p>
-{% endblock %} \ No newline at end of file
+{% endblock %}