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
|
|
@ -29,8 +29,12 @@
|
|||
<h2 class="cluster">{{$key}}</h2>
|
||||
</header>
|
||||
<div class="carasol">
|
||||
{{range sort $items "Title" }}
|
||||
{{ .Render "summary" }}
|
||||
{{range $index, $element := (sort $items "Title") }}
|
||||
{{ 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