diff --git a/core/modules/node/templates/node.html.twig b/core/modules/node/templates/node.html.twig index 0fd28f5..4cb145a 100644 --- a/core/modules/node/templates/node.html.twig +++ b/core/modules/node/templates/node.html.twig @@ -68,7 +68,12 @@ * @ingroup themeable */ #} - +{% + set classes = [ + not node.isPublished() ? 'node--unpublished', + ] +%} + {{ title_prefix }} {% if not page %} diff --git a/core/themes/classy/templates/field--node--created.html.twig b/core/themes/classy/templates/field--node--created.html.twig new file mode 100644 index 0000000..5799a6c --- /dev/null +++ b/core/themes/classy/templates/field--node--created.html.twig @@ -0,0 +1,24 @@ +{# +/** + * @file + * Default theme implementation for the node created field. + * + * This is an override of field.html.twig for the node created field. See that + * template for documentation about its details and overrides. + * + * Available variables: + * - attributes: HTML attributes for the containing span element. + * - items: List of all the field items. Each item contains: + * - attributes: List of HTML attributes for each item. + * - content: The field item content. + * + * @see field.html.twig + * + * @ingroup themeable + */ +#} + + {%- for item in items -%} + {{ item.content }} + {%- endfor -%} + diff --git a/core/themes/classy/templates/field--node--title.html.twig b/core/themes/classy/templates/field--node--title.html.twig new file mode 100644 index 0000000..3f37f83 --- /dev/null +++ b/core/themes/classy/templates/field--node--title.html.twig @@ -0,0 +1,24 @@ +{# +/** + * @file + * Default theme implementation for the node title field. + * + * This is an override of field.html.twig for the node title field. See that + * template for documentation about its details and overrides. + * + * Available variables: + * - attributes: HTML attributes for the containing span element. + * - items: List of all the field items. Each item contains: + * - attributes: List of HTML attributes for each item. + * - content: The field item content. + * + * @see field.html.twig + * + * @ingroup themeable + */ +#} + + {%- for item in items -%} + {{ item.content }} + {%- endfor -%} + diff --git a/core/themes/classy/templates/field--node--uid.html.twig b/core/themes/classy/templates/field--node--uid.html.twig new file mode 100644 index 0000000..c4318a6 --- /dev/null +++ b/core/themes/classy/templates/field--node--uid.html.twig @@ -0,0 +1,24 @@ +{# +/** + * @file + * Default theme implementation for the node user field. + * + * This is an override of field.html.twig for the node user field. See that + * template for documentation about its details and overrides. + * + * Available variables: + * - attributes: HTML attributes for the containing span element. + * - items: List of all the field items. Each item contains: + * - attributes: List of HTML attributes for each item. + * - content: The field item content. + * + * @see field.html.twig + * + * @ingroup themeable + */ +#} + + {%- for item in items -%} + {{ item.content }} + {%- endfor -%} +