inline filtering of collections in updates field

This commit is contained in:
2023-03-28 15:37:49 +10:30
parent 39c61fe694
commit f3d8ec2732

View File

@ -8,8 +8,7 @@ hey what's up! my name is uuupah. im a twenty-something non-binary (they/them pl
### recent updates
<div class="updates-field">
{% set updateslist = collections.post | reverse | limit(5) %}
{% for post in updateslist %}
{% for post in collections.post | reverse | limit(5) %}
<p>{{ post.page.date.toLocaleDateString("en-UK") }} - [{{ post.data.title }}]({{post.filePathStem}}) [{{post.data.tags[0]}}]</p>
{% endfor %}
</div>