<center><h2>
{%- for item in config.extra.menu -%}
{%- if item is ending_with("_index.md") -%}
{%- set item = get_section(path=item, metadata_only=true) -%}
{%- else -%}
{%- set item = get_page(path=item) -%}
{%- endif -%}
{% if not loop.first %} | {% endif -%}
{% if item.path == current_path -%}
{{ item.title }}
{%- else -%}
<a href="{{ item.permalink | safe }}">{{ item.title }}</a>
{%- endif %}
{% endfor %}</h2>
</center>
