{{ 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>
<script>window.searchHintText="点击随笔 开始搜索",window.searchGreetings={afternoon:["下午好！喝杯茶吧","下午茶时间到了","下午适合发呆"],evening:["晚上好！放松一下","今晚月色不错","夜深了，读篇好文"],morning:["早安！元气满满","新的一天，加油","早起的鸟儿有虫吃"],night:["早点睡对皮肤好","夜猫子你好","明天再看吧"],noon:["中午好！记得干饭","午饭吃好了吗，来读篇博客","午后适合摸鱼"]},window.searchHolidays={"01-01":"元旦快乐！新年新气象","02-14":"情人节快乐！愿有人陪","02-16":"除夕快乐！记得吃饺子","02-17":"春节快乐！恭喜发财","03-03":"元宵快乐！吃汤圆啦","03-08":"女神节快乐！做自己","04-01":"愚人节快乐！别被骗哦","04-05":"清明安康","05-01":"劳动节快乐！放假啦","05-04":"青年节快乐！永远年轻","06-01":"儿童节快乐！童心未泯","06-19":"端午安康！记得吃粽子","08-19":"七夕快乐！今晚月色美","09-25":"中秋快乐！记得吃月饼","10-01":"国庆节快乐！享受假期","10-19":"重阳安康！登高望远","12-25":"圣诞快乐！Merry Xmas"}</script></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">
{{ $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 }}
