Use a view to customize content author/submitted info

Replace the hardcoded node meta info with a configurable view.

The idea here is to replace the part of the node template where author/date is printed with a view block placed in layout builder.

  1. Create view called Node meta, listing content, unsorted.
  2. Create a block display, unformatted list, showing 1.
  3. Add a contextual filter for content ID, default to content ID from url.
  4. Add Authored on, Authored by, Changed fields; exclude from display.
  5. Remove published filter, title field.
  6. Configure medium date format as M j Y (or just remove time).
  7. Rewrite date fields to output as {{ created__value|format('medium') }}.
  8. Add a text field with:
    1. {% trans %}Posted by {{ uid }} on {{ created }}{% endtrans %}
      {% if created != changed %} | {% trans %}Updated {{ changed }}{% endtrans %}{% endif %}
  9. Configure content type display, add as a block in layout builder.

With this, you can move the default layout markup from the node template into a layout, then use that layout for content, if a meta area is needed.