Node

Submitted info

The node template has a section for displaying the author and date created.

This is from starterkit, with some extra classes.

{% if display_submitted %}
  <footer class="node__meta">
    {{ author_picture }}
    <div{{ author_attributes.addClass('node__submitted') }}>
      {% trans %}Submitted by {{ author_name }} on {{ date }}{% endtrans %}
      {{ metadata }}
    </div>
  </footer>
{% endif %}

This is fairly easy to customize in templates, but since this is a shared theme, I'm looking for a UI solution.

I don't see any modules that help with this.

Here is the full default node template:

<article{{ attributes }}>

  {{ title_prefix }}
  {% if label and 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 }}
  </div>

</article>

When rendered with layout builder, the layout fills in {{ content }}.

If a node layout was created, with regions for the title, meta, and content, the node template could be reduced to:

<article{{ attributes.addClass(classes) }}>

  {{ title_prefix }}

    <div{{ content_attributes }}>
      {{ content }}
    </div>

  {{ title_suffix }}

</article>