UI updates

This commit is contained in:
2025-01-23 14:24:51 -06:00
parent ef37d7622d
commit 153b178c40
10 changed files with 73 additions and 40 deletions

View File

@ -3,7 +3,7 @@ layout: layouts/home.njk
eleventyNavigation:
key: Home
order: 1
numberOfLatestPostsToShow: 5
numberOfLatestPostsToShow: 3
numberOfNowPostsToShow: 1
---
<div class="now">
@ -14,11 +14,15 @@ numberOfNowPostsToShow: 1
{% set postslistCounter = postsCount %}
{% set showPostListHeader = false %}
{% include "postslist.njk" %}
{% set morePosts = postsCount - numberOfNowPostsToShow %}
{% if morePosts > 0 %}
<a href="/now/">
<button type="button">
See more on the “now” page »
See {{ morePosts }} more »
</button>
</a>
{% endif %}
</div>
{% set postsCount = collections.posts | length %}
@ -32,7 +36,10 @@ numberOfNowPostsToShow: 1
{% if morePosts > 0 %}
<a href="/blog/">
<button type="button">
See {{ morePosts }} more post{% if morePosts != 1 %}s{% endif %} in the blog »
See {{ morePosts }} more »
</button>
</a>
</a>&nbsp;
{% endif %}
<a href="/tags/">
<button type="button">Topics »</button>
</a>