diff --git a/core/modules/taxonomy/templates/taxonomy-term.html.twig b/core/modules/taxonomy/templates/taxonomy-term.html.twig index 6636b79..15d97eb 100644 --- a/core/modules/taxonomy/templates/taxonomy-term.html.twig +++ b/core/modules/taxonomy/templates/taxonomy-term.html.twig @@ -25,6 +25,16 @@ * @ingroup themeable */ #} + +{% + set classes = [ + 'taxonomy-term', + 'taxonomy-term--' ~ term.bundle|clean_class, + view_mode ? 'taxonomy-term--view-mode-' ~ view_mode|clean_class, + 'taxonomy-term--' ~ term.bundle|clean_class ~ '--view-mode-' ~ view_mode|clean_class, + ] +%} + {{ title_prefix }} {% if not page %}