blob: fb07298398d8039898bfe7b7a8c9305facab3774 (
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
31
32
33
34
|
<!-- Partial for classic index page -->
<div id="main">
<div id="content">
<div class="blog-index">
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
{{ range $paginator.Pages }}
<article>
{{ .Scratch.Set "isHome" true }}
{{ partial "post_header.html" . }}
{{ if eq .Site.Params.truncate false }}
{{ .Content }}
{{ else if .Description }}
{{ .Description }}
<footer>
<a href="{{ .Permalink }}" rel="full-article">{{ with .Site.Params.continueReadingText }}{{ . | markdownify }}{{ else }}Read On →{{ end }}</a>
</footer>
{{ else }}
<p>{{ .Summary }}</p>
{{ if .Truncated }}
<footer>
<a href="{{ .Permalink }}" rel="full-article">{{ with .Site.Params.continueReadingText }}{{ . | markdownify }}{{ else }}Read On →{{ end }}</a>
</footer>
{{ end }}
{{ end }}
</article>
{{ end }}
<!-- {{ template "_internal/pagination.html" . }} default pagination -->
{{ partial "pagination.html" . }} <!-- use custom pagination -->
</div>
{{ partial "sidebar.html" . }} <!-- sidebar -->
</div>
</div>
{{ partial "footer.html" . }} <!-- footer -->
|