{{ define "main" }}
<article>
<div class="recent-posts section">
<div class="searchable-header-container">
<h2 class="section-header normal-mode" id="essay-header" onclick="toggleSearchMode(!0)" uk-scrollspy="cls: uk-animation-slide-left-small; delay: 200">随笔<i class="ri-quill-pen-line"></i>
<div class="search-hint-wrapper"><img src="{{ "emotion/bqb/chijing.png" | absURL }}" class="search-mascot">
<span class="search-hint"></span></div>
</h2>
<div class="search-mode" id="search-container" style="display:none"><div class="search-input-group"><i class="ri-search-line search-icon"></i>
<input type="text" id="inline-search-input" placeholder="搜索文章..." autocomplete="off">
<i class="ri-close-line close-icon" onclick="toggleSearchMode(!1)"></i></div></div>
<div id="inline-search-results" class="search-dropdown"></div>
</div>
<div class="posts" uk-scrollspy="target: > .post; cls: uk-animation-slide-left-small; delay: 80">
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "posts") 6 }}
{{ range $paginator.Pages }}
<div class="post"><div class="time">{{ .Date.Format "January 2, 2006" }}</div>
<a href="{{ .RelPermalink }}">{{ .Title }}</a></div>
{{ end }}
</div>
</div>
</article>
{{ if gt $paginator.TotalPages 1 }}
<ul class="pagination">
{{ if $paginator.HasPrev }}<li class="page-item page-previous"><a class="prev" title="上一页" href="{{ $paginator.Prev.URL }}">← 上一页</a></li>{{ end }}
{{ if $paginator.HasNext }}<li class="page-item page-next"><a class="next" title="下一页" href="{{ $paginator.Next.URL }}">下一页 →</a></li>{{ end }}
</ul>
{{ end }}
{{ end }}
