mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:06:26 +08:00
FEATURE: Add category slug to body class on tag pages if it is part of a category (#10911)
This commit will add the category slug class to the body if the tag is a child of a category. Currently, when visiting a tag topic list only the tag name is added to the body class.
This commit is contained in:
parent
caa58a4bd1
commit
e22370a8e1
|
@ -1,4 +1,4 @@
|
|||
{{#d-section tagName="" pageClass="tags" bodyClass=(concat "tag-" tag.id)}}
|
||||
{{#d-section tagName="" pageClass="tags" bodyClass=(concat "tag-" tag.id (if category.slug (concat " category-" category.slug)) "")}}
|
||||
<div class="container">
|
||||
{{discourse-banner user=currentUser banner=site.banner}}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user