PUBLISH: render first 3 summary tags with non-lazy images
This commit is contained in:
parent
9c3f532357
commit
b9e28bef46
22 changed files with 443 additions and 310 deletions
|
|
@ -11,8 +11,12 @@
|
|||
<a href="{{ .Data.Term | urlize }}" class="button button:large">See more</a>
|
||||
</header>
|
||||
<div class="carasol">
|
||||
{{range first 25 .Data.Pages | shuffle }}
|
||||
{{ .Render "summary" }}
|
||||
{{range $index, $element := (first 25 .Data.Pages | shuffle) }}
|
||||
{{ if gt 3 $index}}
|
||||
{{- $element.Render "eager_summary" -}}
|
||||
{{ else }}
|
||||
{{- $element.Render "summary" -}}
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue