Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markup of Category and Tag Links Have Incomplete Class #710

Closed
wesleyboar opened this issue Dec 7, 2022 · 0 comments · Fixed by #730
Closed

Markup of Category and Tag Links Have Incomplete Class #710

wesleyboar opened this issue Dec 7, 2022 · 0 comments · Fixed by #730

Comments

@wesleyboar
Copy link
Contributor

wesleyboar commented Dec 7, 2022

Description

The blog_meta.html template does not create complete classnames for tags nor categories.

Steps to reproduce

  1. Have app with Django CMS Blog installed properly.
  2. Create a post, with a category "C Test", and a tag "T Test".
  3. View the post.
  4. Inspect the markup of the post.

Versions

Software Version
Python 3.8
Django 2.2.27
Django CMS 3.7.4
Django CMS Blog 1.1.1

Expected behaviour

On each <a> within the <ul> of categories and tags, there are either of these classes:

  • blog-categories-c-test or blog-categories-1
  • blog-tag-t-test or blog-tag-1

The {{ category.count }} and {{ tag.count }} render something.

Actual behaviour

On each <a> within the <ul> of categories and tags, there are either of these classes:

  • blog-categories-
  • blog-tag-

The {{ category.count }} and {{ tag.count }} render nothing.

Additional information

Possible Fixes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment