2021-08-15 01:21:37 +00:00
|
|
|
{{ if .Params.showPagination | default (.Site.Params.article.showPagination | default true) }}
|
2021-08-14 04:44:34 +00:00
|
|
|
{{ if or .NextInSection .PrevInSection }}
|
2021-08-18 02:54:18 +00:00
|
|
|
<div class="pt-8 article-pagination">
|
2021-08-20 07:02:08 +00:00
|
|
|
<hr class="border-dotted border-neutral-300 dark:border-neutral-600" />
|
2021-08-14 04:44:34 +00:00
|
|
|
<div class="flex justify-between pt-3">
|
|
|
|
<span>
|
|
|
|
{{ if .NextInSection }}
|
2021-08-25 23:44:41 +00:00
|
|
|
<a class="flex" href="{{ .NextInSection.RelPermalink }}">
|
2021-08-18 02:54:18 +00:00
|
|
|
<span class="mr-3 article-pagination-direction">←</span>
|
2021-08-14 04:44:34 +00:00
|
|
|
<span class="flex flex-col">
|
2021-08-18 02:54:18 +00:00
|
|
|
<span class="article-pagination-title">{{ .NextInSection.Title }}</span>
|
2021-08-21 01:42:40 +00:00
|
|
|
<span class="-mt-1 text-xs text-neutral-400 dark:text-neutral-500">
|
|
|
|
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
|
|
|
{{ partial "meta/date.html" . }}
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
2021-08-14 04:44:34 +00:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
{{ if .PrevInSection }}
|
2021-08-25 23:44:41 +00:00
|
|
|
<a class="flex text-right" href="{{ .PrevInSection.RelPermalink }}">
|
2021-08-14 04:44:34 +00:00
|
|
|
<span class="flex flex-col">
|
2021-08-18 02:54:18 +00:00
|
|
|
<span class="article-pagination-title">{{ .PrevInSection.Title }}</span>
|
2021-08-21 01:42:40 +00:00
|
|
|
<span class="-mt-1 text-xs text-neutral-400 dark:text-neutral-500">
|
|
|
|
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
|
|
|
{{ partial "meta/date.html" . }}
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
2021-08-14 04:44:34 +00:00
|
|
|
</span>
|
2021-08-18 02:54:18 +00:00
|
|
|
<span class="ml-3 article-pagination-direction">→</span>
|
2021-08-14 04:44:34 +00:00
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|