use extra abbr field for navbar links

This commit is contained in:
Yan Lin 2026-02-01 10:12:21 +01:00
parent b752591c39
commit b64c9f4d26
5 changed files with 16 additions and 4 deletions

View file

@ -32,7 +32,7 @@
{% set root = get_section(path="_index.md") %}
{% for path in root.subsections | sort %}
{% set s = get_section(path=path) %}
<a href="{{ s.permalink }}">{{ s.title }}</a>
<a href="{{ s.permalink }}">{{ s.extra.abbr | default(value=s.title) }}</a>
{% endfor %}
</nav>
</header>