- {{ content.links }}
+
+ {{ content|without('links') }}
- {% endif %}
+
+ {% if content.links %}
+
+ {{ content.links }}
+
+ {% endif %}
diff --git a/core/themes/bartik/templates/node.html.twig b/core/themes/bartik/templates/node.html.twig
index 186f3e6..588733e 100644
--- a/core/themes/bartik/templates/node.html.twig
+++ b/core/themes/bartik/templates/node.html.twig
@@ -79,43 +79,42 @@
node.sticky ? 'node--sticky',
not node.published ? 'node--unpublished',
'node--view-mode-' ~ view_mode|clean_class,
- preview ? ' node--preview',
- 'clearfix'
+ preview ? 'node--preview',
+ 'clearfix',
]
%}
-
-
- {{ title_prefix }}
- {% if not page %}
-
- {% endif %}
- {{ title_suffix }}
+
+ {{ title_prefix }}
+ {% if not page %}
+
+ {% endif %}
+ {{ title_suffix }}
- {% if display_submitted %}
-
+ {% endif %}
+
-
- {{ content|without('comment', 'links') }}
-
-
- {% if content.links %}
-
- {{ content.links }}
+
+ {{ content|without('comment', 'links') }}
- {% endif %}
- {{ content.comment }}
+ {% if content.links %}
+
+ {{ content.links }}
+
+ {% endif %}
+
+ {{ content.comment }}