bootstrap_storybook-8.x-2.0/src/components/node/node.twig
src/components/node/node.twig
{#
/**
* @file
* Template for a Node.
*/
#}
{%
set classes = [
'node',
node.isPromoted() ? 'node--promoted',
node.isSticky() ? 'node--sticky',
not node.isPublished() ? 'node--unpublished',
node.bundle|clean_class,
node.bundle|clean_class ~ '--' ~ view_mode|clean_class,
]
%}
<article{{ attributes.addClass(classes) }}>
{{ title_prefix }}
{{ title_suffix }}
{% block content %}
{% if not page %}
<h2{{ title_attributes }}>
<a href="{{ url }}" rel="bookmark">{{ label }}</a>
</h2>
{% endif %}
{% if display_submitted %}
<footer>
{{ author_picture }}
<div{{ author_attributes }}>
{% trans %}Submitted by {{ author_name }} on {{ date }}{% endtrans %}
{{ metadata }}
</div>
</footer>
{% endif %}
<div{{ content_attributes.addClass("content-wrapper") }}>
{{ content }}
</div>
{% endblock %}
</article>
