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