mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
theme: Adjust number of news items to display
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
{{ $releases = where $releases "prerelease" false }}
|
||||
|
||||
{{/* Add pages. */}}
|
||||
{{ range $releases | first 20 }}
|
||||
{{ range $releases | first 24 }}
|
||||
{{ $publishDate := .published_at | time.AsTime }}
|
||||
|
||||
{{/* Correct the v0.138.0 release date. See https://github.com/gohugoio/hugo/issues/13066. */}}
|
||||
|
||||
Reference in New Issue
Block a user