summaryrefslogtreecommitdiffstats
path: root/core/themes/bartik/templates/field--node--field-tags.html.twig
diff options
context:
space:
mode:
Diffstat (limited to 'core/themes/bartik/templates/field--node--field-tags.html.twig')
-rw-r--r--core/themes/bartik/templates/field--node--field-tags.html.twig12
1 files changed, 5 insertions, 7 deletions
diff --git a/core/themes/bartik/templates/field--node--field-tags.html.twig b/core/themes/bartik/templates/field--node--field-tags.html.twig
index c228697..dab4094 100644
--- a/core/themes/bartik/templates/field--node--field-tags.html.twig
+++ b/core/themes/bartik/templates/field--node--field-tags.html.twig
@@ -21,20 +21,18 @@
* @see bartik_preprocess_field()
*/
#}
-{% set field_name_class = field_name|clean_class %}
{%
set classes = [
'field',
- 'field-' ~ entity_type|clean_class ~ '--' ~ field_name_class,
- 'field-name-' ~ field_name_class,
- 'field-type-' ~ field_type|clean_class,
- 'field-label-' ~ label_display,
+ 'field--name-' ~ field_name|clean_class,
+ 'field--type-' ~ field_type|clean_class,
+ 'field--label-' ~ label_display,
'clearfix',
]
%}
{%
set title_classes = [
- 'field-label',
+ 'field__label',
label_display == 'inline' ? 'inline',
]
%}
@@ -42,7 +40,7 @@
{% if not label_hidden %}
<h3{{ title_attributes.addClass(title_classes) }}>{{ label }}</h3>
{% endif %}
- <ul{{ content_attributes.addClass('links', 'field-items') }}>
+ <ul class='links field__items'>
{% for item in items %}
<li{{ item.attributes }}>{{ item.content }}</li>
{% endfor %}