This commit is contained in:
Zach Leatherman
2021-03-17 10:29:29 -05:00
parent a9fdacc9a6
commit 7e5a1f5ce7
4 changed files with 34 additions and 30 deletions

View File

@@ -4,7 +4,6 @@ eleventyNavigation:
key: Home
order: 1
---
{% set maxPosts = collections.posts.length | min(3) %}
<h1>Latest {% if maxPosts == 1 %}Post{% else %}{{ maxPosts }} Posts{% endif %}</h1>