Displaying a month name in an archive I'm trying to figure out how I can print the month name i.e April in the below. Currently, it's printing the last three months that contain entries.

{% set year = craft.request.segment(4) %}
{% set month = craft.request.segment(5) %}

{% set entriesInYear = craft.entries.section('bulletinOnline').limit(null).after(year).before(year+1) %}
{% set groupedEntries =  entriesInYear | group("postDate|date('m')") %}

{% for year, entriesInYear in allEntries | group("postDate.year") %}
    {% set counter = ( counter | default(0) ) + 1 %}

    {% for month, entries in entriesInYear | group("postDate|date('m')") %}

        &lt;a href="{{ url('/archive/')}}/{{ year }}/{{ month }}"&gt;
            {% for monthWord, entries in entriesInYear|group("postDate|date('F')") %}
                {{ monthWord }}
            {% endfor %}
            &amp;nbsp;({{ entries|length }})
        &lt;/a&gt;
    {% endfor %}
{% endfor %}


Example output:

&lt;a href="'/archive/2019/04/"&gt;MarchAprilMay(2)&lt;/a&gt;
Try this:

{% set year = craft.request.segment(4) %}
{% set month = craft.request.segment(5) %}

{% set entriesInYear = craft.entries.section('bulletinOnline').limit(null).after(year).before(year+1) %}
{% set groupedEntries =  entriesInYear | group("postDate|date('m')") %}

{% for year, entriesInYear in allEntries | group("postDate.year") %}
    {% for month, entries in entriesInYear | group("postDate|date('m')") %}

        &lt;a href="{{ url('/archive/')}}/{{ year }}/{{ month }}"&gt;
        {{ month |date((year + 1) ~ '-' ~ month ~ '-01')|date('M') }}&amp;nbsp;({{ entries|length }})&lt;/a&gt;
    {% endfor %}
{% endfor %}