leilukin-site/src/pages/changelog.njk

38 lines
877 B
Plaintext
Raw Normal View History

2024-04-16 11:30:31 +00:00
---
layout: main/changelog
title: Changelog
pageTitle: Website Changelog
desc: Changelog of my website.
metadata:
type: article
date: 2023-01-09
pagination:
data: collections["changelogs"]
size: 20
alias: changelogs
reverse: true
permalink: "/{{ page.fileSlug }}{% if pagination.pageNumber > 0 %}/page/{{ pagination.pageNumber + 1 }}{% endif %}/"
2024-04-16 11:30:31 +00:00
---
<h2>Latest Changelogs</h2>
2024-04-16 11:30:31 +00:00
<article>
{% for log in changelogs %}
<h3>{{ log.data.date | niceDate }}</h3>
2024-04-16 11:30:31 +00:00
{{ log.templateContent | safe }}
{%- endfor %}
</article>
<p class="center-text">
{% if pagination.href.previous %}
<a href=" {{ pagination.href.previous }}">Previous</a>
{% else %}
Previous
{% endif %}
/
{% if pagination.href.next %}
<a href=" {{ pagination.href.next }}">Next</a>
{% else %}
Next
{% endif %}
</p>