Use JavaScript slice function for home page changelog
All checks were successful
Deploy to Hostinger / Build and Push (push) Successful in 43s
All checks were successful
Deploy to Hostinger / Build and Push (push) Successful in 43s
This commit is contained in:
parent
a47d350665
commit
84d972cfeb
@ -51,7 +51,7 @@ eleventyComputed:
|
||||
<section class="content__section">
|
||||
<h2>What is New?</h2>
|
||||
<div class="text-box">
|
||||
{{ for log of collections["changelogs"] |> toReversed |> itemLimit(1) }}
|
||||
{{ for log of collections["changelogs"] |> toReversed |> slice(0, 1) }}
|
||||
<h3>{{ log.data.title }}</h3>
|
||||
{{ log.content }}
|
||||
{{ /for }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user