2023-01-23 11:02:06 -05:00
|
|
|
---
|
|
|
|
layout: layouts/home.njk
|
|
|
|
eleventyNavigation:
|
|
|
|
key: Home
|
|
|
|
order: 1
|
|
|
|
---
|
|
|
|
{% set postsCount = collections.posts | length %}
|
|
|
|
{% set latestPostsCount = postsCount | min(3) %}
|
|
|
|
<h1>Latest {{ latestPostsCount }} Post{% if latestPostsCount != 1 %}s{% endif %}</h1>
|
|
|
|
|
|
|
|
{% set postslist = collections.posts | head(-3) %}
|
|
|
|
{% set postslistCounter = postsCount %}
|
|
|
|
{% include "postslist.njk" %}
|
|
|
|
|
|
|
|
{% if postsCount > 3 %}
|
|
|
|
<p>More posts can be found in <a href="/blog/">the archive</a>.</p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{# List every content page in the project #}
|
|
|
|
{#
|
|
|
|
<ul>
|
2023-01-23 12:37:44 -05:00
|
|
|
{%- for entry in collections.all %}
|
|
|
|
<li><a href="{{ entry.url }}"><code>{{ entry.url }}</code></a></li>
|
|
|
|
{%- endfor %}
|
2023-01-23 11:02:06 -05:00
|
|
|
</ul>
|
|
|
|
#}
|