I think this is happening because the field--node--title.html.twig is including the page-title.html.twig file instead of rendering the content which will render the page-title.html.twig template. Similar to the "stable" drupal 8 theme.
{% for item in items %}
{{ item.content }}
{% endfor %}
GovCMS8 uikit - field--node--title.html.twig
{% for item in items %}
{% include '@govcms8_uikit_starter/content/page-title.html.twig' with {
title: item.content,
title_attributes: attributes
} only %}
{% endfor %}
Using the current
field--node--title.html.twig
andpage-title.html.twig
template files are producing a double up on<h1>
elements being rendered.I think this is happening because the
field--node--title.html.twig
is including thepage-title.html.twig
file instead of rendering the content which will render thepage-title.html.twig
template. Similar to the "stable" drupal 8 theme.Drupal 8: Core Stable Theme - field--node--title.html.twig
GovCMS8 uikit - field--node--title.html.twig