force nunjucks as markdown template engine

This commit is contained in:
2023-03-28 15:18:36 +10:30
parent 1c93139bec
commit 155e51f4e2
6 changed files with 10 additions and 9 deletions

View File

@ -5,7 +5,7 @@ eleventyImport.collections: ["blog"]
---
<div class="pages-article">
{% for post in collections.blog reversed %}
\- [{{ post.data.title || post.data.title != "" ? post.data.title : post.data.page.fileSlug }}](/blog/{{ post.data.page.fileSlug }})
{% for post in collections.blog | reverse %}
\- [{{post.data.title or post.data.page.fileSlug }}](/blog/{{ post.data.page.fileSlug }})
{% endfor %}
</div>