When using header elements, how can I output the publication date and, if there is one, also the date of an update in the single view?
As with the attached example of the archive / blog view.
for the published date you can use the {{post_date}} template tag.
To output the modified ( last updated date ) you would need to create a shortcode, this article explains how to do that: