Render log date for log title

This commit is contained in:
Helen Chong 2024-04-16 22:16:37 +08:00
parent ba8f4f31ba
commit cecd10f1be
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ date: 2022-01-02
<article> <article>
{% for log in collections["changelog 2022"] | reverse %} {% for log in collections["changelog 2022"] | reverse %}
<div class="heading-wrapper h2"> <div class="heading-wrapper h2">
<h2 id="{{ log.fileSlug }}">{{ log.data.title }}</h2> <h2 id="{{ log.fileSlug }}">{{ log.date | niceDate }}</h2>
<a class="heading-anchor" href="#{{ log.fileSlug }}" aria-labelledby="{{ log.fileSlug }}"><span hidden="">#</span></a> <a class="heading-anchor" href="#{{ log.fileSlug }}" aria-labelledby="{{ log.fileSlug }}"><span hidden="">#</span></a>
</div> </div>
{{ log.templateContent | safe }} {{ log.templateContent | safe }}