From 49295ecb733ec982329c82623df2f76008f27751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Mon, 17 Dec 2018 17:15:14 -0500 Subject: [PATCH] Print the secondary menu in the titlebar area because our styleguide is annoying, we had to add the titlebar section to things that don't have it in the styleguide, to be able to add the titlebar links part when the secondary menu is there. because Drupal is annoying, it prints the titlebar_links part whether there's any secondary menu or not. Ref #110 --- agaric/templates/layout/node--full.html.twig | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/agaric/templates/layout/node--full.html.twig b/agaric/templates/layout/node--full.html.twig index c6a46a7..775384a 100644 --- a/agaric/templates/layout/node--full.html.twig +++ b/agaric/templates/layout/node--full.html.twig @@ -94,11 +94,20 @@
-

{{ label }}

- {% if content.field_authors is not empty %} - - - {% endif %} +
+
+

{{ label }}

+ {% if content.field_authors is not empty %} + + + {% endif %} +
+ {% if secondary_menu %} + + {% endif %} +