diff --git a/core/modules/node/templates/node.html.twig b/core/modules/node/templates/node.html.twig index 75609f6..e29b93e 100644 --- a/core/modules/node/templates/node.html.twig +++ b/core/modules/node/templates/node.html.twig @@ -11,10 +11,10 @@ * - createdtime: Formatted creation date. Preprocess functions can * reformat it by calling format_date() with the desired parameters on * $variables['node']->getCreatedTime(). - * - promoted: Whether the node is promoted to the front page. - * - sticky: Whether the node is 'sticky'. Sticky nodes are ordered above + * - isPromoted: Whether the node is promoted to the front page. + * - isSticky: Whether the node is 'sticky'. Sticky nodes are ordered above * other non-sticky nodes in teaser listings - * - published: Whether the node is published. + * - isPublished: Whether the node is published. * - label: The title of the node. * - content: All node items. Use {{ content }} to print them all, * or print a subset such as {{ content.field_example }}. Use @@ -80,41 +80,41 @@ set classes = [ 'node', 'node--type-' ~ node.bundle|clean_class, - node.promoted ? 'node--promoted', - node.sticky ? 'node--sticky', - not node.published ? 'node--unpublished', + node.isPromoted ? 'node--promoted', + node.isSticky ? 'node--sticky', + not node.isPublished ? 'node--unpublished', 'node--view-mode-' ~ view_mode|clean_class, 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 }} - - {% trans %}Submitted by {{ author_name|passthrough }} on {{ date }}{% endtrans %} - {{ metadata }} - -
- {% endif %} + {% if display_submitted %} +
+ {{ author_picture }} + + {% trans %}Submitted by {{ author_name|passthrough }} on {{ date }}{% endtrans %} + {{ metadata }} + +
+ {% endif %} - - {{ content|without('links') }} - + + {{ 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 588733e..9e95734 100644 --- a/core/themes/bartik/templates/node.html.twig +++ b/core/themes/bartik/templates/node.html.twig @@ -11,10 +11,10 @@ * - createdtime: Formatted creation date. Preprocess functions can * reformat it by calling format_date() with the desired parameters on * $variables['node']->getCreatedTime(). - * - promoted: Whether the node is promoted to the front page. - * - sticky: Whether the node is 'sticky'. Sticky nodes are ordered above + * - isPromoted: Whether the node is promoted to the front page. + * - isSticky: Whether the node is 'sticky'. Sticky nodes are ordered above * other non-sticky nodes in teaser listings - * - published: Whether the node is published. + * - isPublished: Whether the node is published. * - label: The title of the node. * - content: All node items. Use {{ content }} to print them all, * or print a subset such as {{ content.field_example }}. Use @@ -75,9 +75,9 @@ set classes = [ 'node', 'node--type-' ~ node.bundle|clean_class, - node.promoted ? 'node--promoted', - node.sticky ? 'node--sticky', - not node.published ? 'node--unpublished', + node.isPromoted ? 'node--promoted', + node.isSticky ? 'node--sticky', + not node.isPublished ? 'node--unpublished', 'node--view-mode-' ~ view_mode|clean_class, preview ? 'node--preview', 'clearfix', @@ -85,36 +85,36 @@ %} -
- {{ 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') }} - + + {{ content|without('comment', 'links') }} + - {% if content.links %} - - {% endif %} + {% if content.links %} + + {% endif %} - {{ content.comment }} + {{ content.comment }}