- {{ title_prefix }}
- {% if not page %}
-
- {% endif %}
- {{ title_suffix }}
+ {{ title_prefix }}
+ {% if not page %}
+
+ {% endif %}
+ {{ title_suffix }}
- {% if display_submitted %}
-
- {% endif %}
+ {% if display_submitted %}
+
+ {% endif %}
-
- {{ content|without('links') }}
-
+
+ {{ content|without('links') }}
+
- {% if content.links %}
-
- {{ content.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 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 @@
%}