blob: 0e6cd7d12a003b56ca23924253a7b95295a8b358 (
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
|
{{ partial "head.html" . }}
<body>
<div id="blog">
{{ partial "header.html" . }}
{{ partial "sidebar.html" . }}
{{ if or (not (isset .Site.Params "tagPagination")) (.Site.Params.tagPagination) }}
{{ partial "post/header-cover.html" . }}
{{ end }}
<div id="main" data-behavior="{{ .Scratch.Get "sidebarBehavior" }}"
class="{{ with .Params.coverimage }}hasCover{{ end }}
{{ if eq .Params.covermeta "out" }}hasCoverMetaOut{{ else }}hasCoverMetaIn{{ end }}
{{ with .Params.coverCaption }}hasCoverCaption{{ end }}">
{{ if or (not (isset .Site.Params "tagPagination")) (.Site.Params.tagPagination) }}
<section class="postShorten-group main-content-wrap">
{{ $paginator := .Paginate (where .Data.Pages "Type" "in" site.Params.mainSections) }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
{{ partial "pagination.html" . }}
</section>
{{ else }}
<div id="archives" class="main-content-wrap">
<form id="filter-form" action="#">
<input name="date" type="text" class="form-control input--xlarge" placeholder="{{ i18n "global.search_date" }}" autofocus="autofocus">
</form>
{{ partial "archive-post.html" (where .Data.Pages "Type" "in" site.Params.mainSections) }}
</div>
{{ end }}
{{ partial "footer.html" . }}
</div>
</div>
{{ partial "foot.html" . }}
|