Create changelog list template
This commit is contained in:
parent
b953ba40ca
commit
82ce0ff99d
|
@ -0,0 +1,9 @@
|
|||
<article>
|
||||
{% for log in changelogList | reverse %}
|
||||
<div class="heading-wrapper h2">
|
||||
<h2 id="{{ log.fileSlug }}">{{ log.date | niceDate }}</h2>
|
||||
<a class="heading-anchor" href="#{{ log.fileSlug }}" aria-labelledby="{{ log.fileSlug }}"><span hidden="">#</span></a>
|
||||
</div>
|
||||
{{ log.templateContent | safe }}
|
||||
{%- endfor %}
|
||||
</article>
|
|
@ -8,12 +8,5 @@ metadata:
|
|||
date: 2022-02-02
|
||||
---
|
||||
|
||||
<article>
|
||||
{% for log in collections["changelog 2022"] | reverse %}
|
||||
<div class="heading-wrapper h2">
|
||||
<h2 id="{{ log.fileSlug }}">{{ log.date | niceDate }}</h2>
|
||||
<a class="heading-anchor" href="#{{ log.fileSlug }}" aria-labelledby="{{ log.fileSlug }}"><span hidden="">#</span></a>
|
||||
</div>
|
||||
{{ log.templateContent | safe }}
|
||||
{%- endfor %}
|
||||
</article>
|
||||
{% set changelogList = collections["changelog 2022"] %}
|
||||
{% include "main/changelog-list.njk" %}
|
Loading…
Reference in New Issue