mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
Updating docs to include ‘first’ functionality for the homepage
This commit is contained in:
@ -43,7 +43,7 @@ It makes use of [chrome templates](/layout/chrome)
|
||||
|
||||
<section id="main">
|
||||
<div>
|
||||
{{ range .Data.Pages }}
|
||||
{{ range first 10 .Data.Pages }}
|
||||
{{ .Render "summary"}}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user