From 36cf57403dd6a463c840ef23eb42645f8da3e579 Mon Sep 17 00:00:00 2001 From: Mo-k-tec <Mo-k-tec@1867464.no-reply.drupal.org> Date: Sun, 12 Jul 2020 08:48:16 -0500 Subject: [PATCH] Issue #3158009 by mojo4444: node template contexual menu issue --- templates/content/node.html.twig | 42 +++++++++++++++----------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/templates/content/node.html.twig b/templates/content/node.html.twig index 7b3ea9f..57f3acd 100644 --- a/templates/content/node.html.twig +++ b/templates/content/node.html.twig @@ -73,28 +73,26 @@ ] %} <article{{ attributes.addClass(classes) }}> - {% if label and not page %} - <header> - {{ title_prefix }} - {% if label and not page %} - <h2{{ title_attributes.addClass('node__title') }}> - <a href="{{ url }}" rel="bookmark">{{ label }}</a> - </h2> - {% endif %} - {{ title_suffix }} - {% if display_submitted %} - <div class="node__meta"> - {{ author_picture }} - {% block submitted %} - <em{{ author_attributes }}> - {% trans %}Submitted by {{ author_name }} on {{ date }}{% endtrans %} - </em> - {% endblock %} - {{ metadata }} - </div> - {% endif %} - </header> - {% endif %} + <header> + {{ title_prefix }} + {% if label and not page %} + <h2{{ title_attributes.addClass('node__title') }}> + <a href="{{ url }}" rel="bookmark">{{ label }}</a> + </h2> + {% endif %} + {{ title_suffix }} + {% if display_submitted %} + <div class="node__meta"> + {{ author_picture }} + {% block submitted %} + <em{{ author_attributes }}> + {% trans %}Submitted by {{ author_name }} on {{ date }}{% endtrans %} + </em> + {% endblock %} + {{ metadata }} + </div> + {% endif %} + </header> <div{{ content_attributes.addClass('node__content', 'clearfix') }}> {{ content }} </div> -- GitLab