node.html.twig in Drupal 8
<article{{ attributes }}>
{{ title_prefix }}
{% if not page %}
<h2{{ title_attributes }}>
<a href="{{ url }}" rel="bookmark">{{ label }}</a>
</h2>
{% endif %}
{{ title_suffix }}
{% if display_submitted %}
<footer>
{{ author_picture }}
<div{{ author_attributes }}>
{% trans %}Submitted by {{ author_name }} on {{ date }}{% endtrans %}
{{ metadata }}
</div>
</footer>
{% endif %}
<div{{ content_attributes }}>
{{ content.body }}
</div>
</article>
File
core/modules/statistics/tests/themes/statistics_test_attached/node.html.twig
View source
- <article{{ attributes }}>
-
- {{ title_prefix }}
- {% if not page %}
- <h2{{ title_attributes }}>
- <a href="{{ url }}" rel="bookmark">{{ label }}</a>
- </h2>
- {% endif %}
- {{ title_suffix }}
-
- {% if display_submitted %}
- <footer>
- {{ author_picture }}
- <div{{ author_attributes }}>
- {% trans %}Submitted by {{ author_name }} on {{ date }}{% endtrans %}
- {{ metadata }}
- </div>
- </footer>
- {% endif %}
-
- <div{{ content_attributes }}>
- {{ content.body }}
- </div>
- </article>