Skip to content

Commit

Permalink
fix(templates): blog_meta category & tag classname
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed Dec 7, 2022
1 parent d3aa129 commit 476cc7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taccsite_cms/templates/djangocms_blog/includes/blog_meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
{% if post.categories.exists %}
{% for category in post.categories.all %}
{% if category.slug %}
<li class="category_{{ forloop.counter }}"><a href="{% url 'djangocms_blog:posts-category' category=category.slug %}" class="blog-categories-{{ category.count }}">{{ category.name }}</a>{% if not forloop.last %}, {% endif %}</li>
<li class="category_{{ forloop.counter }}"><a href="{% url 'djangocms_blog:posts-category' category=category.slug %}" class="blog-categories-{{ category.slug }}">{{ category.name }}</a>{% if not forloop.last %}, {% endif %}</li>
{% endif %}
{% endfor %}
{% endif %}
{% endspaceless %}</ul>
<ul class="post-detail tags">{% spaceless %}
{% if post.tags.exists %}
{% for tag in post.tags.all %}
<li class="tag_{{ forloop.counter }}"><a href="{% url 'djangocms_blog:posts-tagged' tag=tag.slug %}" class="blog-tag blog-tag-{{ tag.count }}">{{ tag.name }}</a></li>
<li class="tag_{{ forloop.counter }}"><a href="{% url 'djangocms_blog:posts-tagged' tag=tag.slug %}" class="blog-tag blog-tag-{{ tag.slug }}">{{ tag.name }}</a></li>
{% endfor %}
{% endif %}
{% endspaceless %}</ul>

0 comments on commit 476cc7b

Please sign in to comment.