Improve now page
This commit is contained in:
parent
ec4c5d259b
commit
8a78ee2b9f
@ -6,11 +6,24 @@ structuredData: none
|
|||||||
<article class="post">
|
<article class="post">
|
||||||
<h1>Now: Life updates.</h1>
|
<h1>Now: Life updates.</h1>
|
||||||
{% set now = collections.now | last %}
|
{% set now = collections.now | last %}
|
||||||
<h2>{{ now.data.title }}</h2>
|
<h2>{{ now.data.title }} • {{ now.date | niceDate }}</h2>
|
||||||
{{ now.content | safe }}
|
{{ now.content | safe }}
|
||||||
</article>
|
</article>
|
||||||
<p class="metadata">Updated on the {{ now.date | niceDate }} by {{ metadata.author.name }} | <a href="https://nownownow.com/about">What is a now page?</a></p>
|
|
||||||
|
|
||||||
|
<div class="buttonContainer">
|
||||||
|
<a class="link-button" href="/feeds/now.xml">
|
||||||
|
<button type="button">
|
||||||
|
<img src="/img/RSS.svg">
|
||||||
|
Subscribe to “Now” Posts
|
||||||
|
</button>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a class="link-button" href="https://nownownow.com/about">
|
||||||
|
<button type="button">
|
||||||
|
What is a now page?
|
||||||
|
</button>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
{% set postsCount = collections.now | removeMostRecent | length %}
|
{% set postsCount = collections.now | removeMostRecent | length %}
|
||||||
{% if postsCount > 1 %}
|
{% if postsCount > 1 %}
|
||||||
<h2>Previous Entries:</h2>
|
<h2>Previous Entries:</h2>
|
||||||
@ -19,3 +32,4 @@ structuredData: none
|
|||||||
{% include "postslist.njk" %}
|
{% include "postslist.njk" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user