UI updates
This commit is contained in:
@ -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>
|
||||
{% endif %}
|
||||
<a href="/tags/">
|
||||
<button type="button">Topics »</button>
|
||||
</a>
|
||||
|
Reference in New Issue
Block a user