blob: 88821c8a0782e488b02a76deefd5ebf2c236de70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{{ partial "header" . }}
<article>
<header>
{{ partial "title" . }}
{{ with .Content }}{{.}}{{ end }}
</header>
{{ $latestcount := .Site.Params.LatestCount | default 3 }}
{{ $postsection := .Site.Params.PostSection | default "post" }}
<section>
<h4>{{ T "latestPost" }}</h4>
<ul class="no-bullet">
{{- range (first $latestcount (where .Pages "Section" $postsection)) -}}
{{ partial "li" . }}
{{- end -}}
</ul>
</section>
{{ $worksection := .Site.Params.WorkSection | default "work" }}
{{ with .Site.GetPage "section" $worksection }}
<section>
<h4>{{ T "latestWork" }}</h4>
<ul class="no-bullet">
{{- range (first $latestcount (where .Pages "Section" $worksection)) -}}
{{ partial "li" . }}
{{- end -}}
</ul>
</section>
{{ end }}
</article>
{{ partial "footer" . }}
|