{% extends "index.html" %} {% block main %} {%- if page.extra.date_format %} {%- set date_format_archive = page.extra.date_format %} {%- elif section.extra.date_format %} {%- set date_format_archive = section.extra.date_format %} {%- else %} {%- set date_format_archive = `%m-%d` %} {%- endif %} {%- if g_profile is defined %} {% include "partials/profile.html" %} {%- elif page.title %}

{{ page.title }}

{%- elif section.title %}

{{ section.title }}

{%- endif %} {%- if page.content %}
{{ page.content | safe }}
{%- elif section.content %}
{{ section.content | safe }}
{%- endif %} {%- if page.extra.section is defined %} {%- set section = get_section(path=page.extra.section) %} {%- endif %} {%- if section.pages is undefined and paginator.pages is undefined %} {{- throw(message="The archive page is missing the extra.section frontmatter variable!") }} {%- endif %} {%- for year, posts in section.pages | default(value=paginator.pages) | sort(attribute=`date`) | reverse | group_by(attribute=`year`) %}

{{ year }} {{ posts | length }}

{%- endfor %} {% endblock main %}