How would I print out the first instance of a paragraph bundle in a node template? I have a node type article with a paragraph field field_sections with the available bundles section_image and section_text.  In my node.html.twig file I'd like to render out the first instance of any section_image bundles that may have been added. Any ideas on how to achieve this? Not sure if twig logic is correct way to go about this or if I should have a function in my .theme file that does the logic and returns a variable to do this that I could use in the twig file.
TWIG

In twig you can check for the paragraph bundle in the items loop of a field template and only print the first item found:

field--node--field-paragraph--content-type.html.twig

  &lt;div{{ attributes }}&gt;
    {% for item in items if item.content['#paragraph'].bundle == 'paragraph_type' %}
      {% if loop.index == 1 %}
        &lt;div{{ item.attributes }}&gt;{{ item.content }}&lt;/div&gt;
      {% endif %}
    {% endfor %}
  &lt;/div&gt;


And then print this field in the node template:

{{ content.field_paragraph }}


UI

For a UI solution you need a field formatter like Paragraphs summary formatter, which in the moment only exists in a sandbox version, see https://www.drupal.org/project/paragraphs_summary/issues/2803859#comment-11804075