{{ define "main" }}
<article>
<div class="post-content">
<h1 class="post-title" style="margin-top:0.8em" uk-scrollspy="cls: uk-animation-slide-top-small; delay: 200">{{ .Title }}</h1>
{{ range .Pages.GroupByDate "2006" }}
<h2 class="a-archives" style="margin-top:20px" uk-scrollspy="cls: uk-animation-slide-left-small; delay: 100">{{ .Key }}</h2>
<div uk-scrollspy="target: > div; cls: uk-animation-slide-left-small; delay: 80">
{{ range .Pages }}
<div style="margin:8px 0">
<span class="articles_date_time">{{ .Date.Format "01/02" }}</span>
<a class="a-archives" href="{{ .RelPermalink }}">{{ .Title }}</a>
</div>
{{ end }}
</div>
{{ end }}
{{ 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 }}
</div>
</article>
{{ end }}
