From bf3bc6c2842644de5702fa77e2e949d70f882abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Sat, 17 Nov 2018 13:02:48 -0500 Subject: [PATCH] Override node title field to remove unneeded spans --- .../field/field--node--title.html.twig | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 agaric/templates/field/field--node--title.html.twig diff --git a/agaric/templates/field/field--node--title.html.twig b/agaric/templates/field/field--node--title.html.twig new file mode 100644 index 0000000..b07384f --- /dev/null +++ b/agaric/templates/field/field--node--title.html.twig @@ -0,0 +1,24 @@ +{# +/** + * @file + * Theme override for the node title field. + * + * This is an override of field.html.twig for the node title field. See that + * template for documentation about its details and overrides. + * + * Available variables: + * - attributes: HTML attributes for the containing span element. + * - items: List of all the field items. Each item contains: + * - attributes: List of HTML attributes for each item. + * - content: The field item content. + * - entity_type: The entity type to which the field belongs. + * - field_name: The name of the field. + * - field_type: The type of the field. + * - label_display: The display settings for the label. + * + * @see field.html.twig + */ +#} +{%- for item in items -%} + {{ item.content }} +{%- endfor -%}