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-11-06 03:38:33 +00:00
|
|
|
<span class="article-pagination-title mt-[0.1rem] leading-6"
|
|
|
|
>{{ .NextInSection.Title | emojify }}</span
|
|
|
|
>
|
2021-12-21 02:22:45 +00:00
|
|
|
<span class="mt-[0.1rem] text-xs text-neutral-500 dark:text-neutral-400">
|
2021-08-21 01:42:40 +00:00
|
|
|
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
2022-01-23 21:33:19 +00:00
|
|
|
{{ partial "meta/date.html" .NextInSection.Date }}
|
2021-08-21 01:42:40 +00:00
|
|
|
{{ 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-11-06 03:38:33 +00:00
|
|
|
<span class="article-pagination-title mt-[0.1rem] leading-6"
|
|
|
|
>{{ .PrevInSection.Title | emojify }}</span
|
|
|
|
>
|
2021-12-21 02:22:45 +00:00
|
|
|
<span class="mt-[0.1rem] text-xs text-neutral-500 dark:text-neutral-400">
|
2021-08-21 01:42:40 +00:00
|
|
|
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
2022-01-23 21:33:19 +00:00
|
|
|
{{ partial "meta/date.html" .PrevInSection.Date }}
|
2021-08-21 01:42:40 +00:00
|
|
|
{{ 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 }}
|