From 3cb922c0742c98c4945ff2341b366da6424ef4ad Mon Sep 17 00:00:00 2001 From: Wesley B <62723358+wesleyboar@users.noreply.github.com> Date: Sun, 23 Apr 2023 16:10:26 -0500 Subject: [PATCH] Fix blog meta category and tag classname (#730) Use automated and required and recognizable "slug" instead of empty "count". --- changes/710.bugfix | 1 + .../templates/djangocms_blog/includes/blog_meta.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changes/710.bugfix 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 %} -