diff --git a/changes/710.bugfix b/changes/710.bugfix new file mode 100644 index 00000000..473ffa51 --- /dev/null +++ b/changes/710.bugfix @@ -0,0 +1 @@ +Add classname for categories and tags that uses slug, not empty "count". diff --git a/djangocms_blog/templates/djangocms_blog/includes/blog_meta.html b/djangocms_blog/templates/djangocms_blog/includes/blog_meta.html index 3ff9b5cb..3309a4b7 100644 --- a/djangocms_blog/templates/djangocms_blog/includes/blog_meta.html +++ b/djangocms_blog/templates/djangocms_blog/includes/blog_meta.html @@ -21,13 +21,13 @@ {% if post.categories.exists %} {% for category in post.categories.all %} {% if category.slug %} -
  • {{ category.name }}{% if not forloop.last %}, {% endif %}
  • +
  • {{ category.name }}{% if not forloop.last %}, {% endif %}
  • {% endif %} {% endfor %} {% endif %} {% if post.tags.exists %} {% for tag in post.tags.all %} -
  • {{ tag.name }}{% if not forloop.last %}, {% endif %}
  • +
  • {{ tag.name }}{% if not forloop.last %}, {% endif %}
  • {% endfor %} {% endif %}