blob: 46f48831d4ef87d20e8d486e794cafb2fceff2bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{{ define "hero" }}
{{ partial "hero.html" (dict "Title" .Title "Content" "Perhaps you were looking for one of these?") }}
{{ end }}
{{ define "main"}}
{{ $query := where (where (where (where site.RegularPages.ByDate.Reverse "Title" "!=" "") "Kind" "in" (slice "page" "section")) "Params.private" "!=" true) "Permalink" "!=" "" }}
{{ $count := len $query }}
{{ if gt $count 0 }}
{{ range first 5 $query }}
{{ partial "post.html" . }}
{{ end }}
{{ end }}
{{ end }}
|