diff --git a/core/modules/node/templates/node.html.twig b/core/modules/node/templates/node.html.twig index ddbb63d..1d4b16b 100644 --- a/core/modules/node/templates/node.html.twig +++ b/core/modules/node/templates/node.html.twig @@ -77,7 +77,6 @@ * @ingroup themeable */ #} - {% set classes = [ 'node', @@ -86,38 +85,37 @@ node.sticky ? 'node--sticky', not node.published ? 'node--unpublished', 'node--view-mode-' ~ view_mode|clean_class, - preview ? ' node--preview' + preview ? 'node--preview', ] %} - - {{ title_prefix }} - {% if not page %} - - {{ label }} - - {% endif %} - {{ title_suffix }} + {{ title_prefix }} + {% if not page %} + + {{ label }} + + {% endif %} + {{ title_suffix }} - {% if display_submitted %} -
- {{ author_picture }} - -
- {% endif %} + {% if display_submitted %} +
+ {{ author_picture }} + + {% trans %}Submitted by {{ author_name|passthrough }} on {{ date }}{% endtrans %} + {{ metadata }} + +
+ {% endif %} -
- {{ content|without('links') }} -
- - {% if content.links %} - - {% endif %} + + {% if 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 %} -

- {{ label }} -

- {% endif %} - {{ title_suffix }} +
+ {{ title_prefix }} + {% if not page %} + + {{ label }} + + {% endif %} + {{ title_suffix }} - {% if display_submitted %} -
- {{ author_picture }} - + {% if display_submitted %} +
+ {{ author_picture }} + {% trans %}Submitted by {{ author_name|passthrough }} on {{ date }}{% endtrans %} - {{ metadata }} -
- {% endif %} -
+ {{ metadata }} + + {% endif %} +
-
- {{ content|without('comment', 'links') }} -
- - {% if content.links %} - - {% endif %} - {{ content.comment }} + {% if content.links %} + + {% endif %} + + {{ content.comment }}