You are here

node.html.twig in Drupal 10

<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
  1. <article{{ attributes }}>
  2. {{ title_prefix }}
  3. {% if not page %}
  4. <h2{{ title_attributes }}>
  5. <a href="{{ url }}" rel="bookmark">{{ label }}</a>
  6. </h2>
  7. {% endif %}
  8. {{ title_suffix }}
  9. {% if display_submitted %}
  10. <footer>
  11. {{ author_picture }}
  12. <div{{ author_attributes }}>
  13. {% trans %}Submitted by {{ author_name }} on {{ date }}{% endtrans %}
  14. {{ metadata }}
  15. </div>
  16. </footer>
  17. {% endif %}
  18. <div{{ content_attributes }}>
  19. {{ content.body }}
  20. </div>
  21. </article>