Render changelog navigation via the Navigation plugin
This commit is contained in:
parent
f4ae672547
commit
837e5e947a
|
@ -11,15 +11,10 @@ layout: main/content
|
|||
<a {% if currentUrl === "/changelogs/" %}aria-current="page"{% endif %} href="/changelogs">Latest</a>
|
||||
</li>
|
||||
|
|
||||
{% for page in collections["changelog pages"] | reverse %}
|
||||
{% set navPages = collections.all | eleventyNavigation("Changelogs") | reverse %}
|
||||
{%- for entry in navPages %}
|
||||
<li>
|
||||
<a
|
||||
{% if currentUrl === page.url %}
|
||||
aria-current="page"
|
||||
{% endif %}
|
||||
href="{{ page.url }}">
|
||||
{{ page.data.changelogNav }}
|
||||
</a>
|
||||
<a {% if entry.url == page.url %}aria-current="page"{% endif %} href="{{ entry.url }}">{{ entry.title }}</a>
|
||||
</li>
|
||||
{% if not loop.last %}|{% endif %}
|
||||
{%- endfor %}
|
||||
|
|
Loading…
Reference in New Issue