mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 09:54:40 -04:00
Updating docs to include ‘first’ functionality for the homepage
This commit is contained in:
parent
696d97231a
commit
d25a31ac66
@ -43,7 +43,7 @@ It makes use of [chrome templates](/layout/chrome)
|
|||||||
|
|
||||||
<section id="main">
|
<section id="main">
|
||||||
<div>
|
<div>
|
||||||
{{ range .Data.Pages }}
|
{{ range first 10 .Data.Pages }}
|
||||||
{{ .Render "summary"}}
|
{{ .Render "summary"}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user