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 }}
|
2022-01-24 06:05:50 +00:00
|
|
|
{{ $next := .NextInSection }}
|
|
|
|
{{ $prev := .PrevInSection }}
|
|
|
|
{{ if .Params.invertPagination | default (.Site.Params.article.invertPagination | default false) }}
|
|
|
|
{{ $next = .PrevInSection }}
|
|
|
|
{{ $prev = .NextInSection }}
|
|
|
|
{{ end }}
|
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>
|
2022-01-24 06:05:50 +00:00
|
|
|
{{ if $prev }}
|
|
|
|
<a class="flex" href="{{ $prev.RelPermalink }}">
|
2022-01-18 23:25:48 +00:00
|
|
|
<span
|
|
|
|
class="mr-3 ltr:inline rtl:hidden article-pagination-direction text-neutral-700 dark:text-neutral"
|
|
|
|
>←</span
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="ml-3 ltr:hidden rtl:inline article-pagination-direction text-neutral-700 dark:text-neutral"
|
|
|
|
>→</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"
|
2022-01-24 06:05:50 +00:00
|
|
|
>{{ $prev.Title | emojify }}</span
|
2021-11-06 03:38:33 +00:00
|
|
|
>
|
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-24 06:05:50 +00:00
|
|
|
{{ partial "meta/date.html" $prev.Date }}
|
2021-08-21 01:42:40 +00:00
|
|
|
{{ end }}
|
|
|
|
</span>
|
2021-08-14 04:44:34 +00:00
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
<span>
|
2022-01-24 06:05:50 +00:00
|
|
|
{{ if $next }}
|
|
|
|
<a class="flex text-right" href="{{ $next.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"
|
2022-01-24 06:05:50 +00:00
|
|
|
>{{ $next.Title | emojify }}</span
|
2021-11-06 03:38:33 +00:00
|
|
|
>
|
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-24 06:05:50 +00:00
|
|
|
{{ partial "meta/date.html" $next.Date }}
|
2021-08-21 01:42:40 +00:00
|
|
|
{{ end }}
|
|
|
|
</span>
|
2021-08-14 04:44:34 +00:00
|
|
|
</span>
|
2022-01-18 23:25:48 +00:00
|
|
|
<span
|
|
|
|
class="ml-3 ltr:inline rtl:hidden article-pagination-direction text-neutral-700 dark:text-neutral"
|
|
|
|
>→</span
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mr-3 ltr:hidden rtl:inline article-pagination-direction text-neutral-700 dark:text-neutral"
|
|
|
|
>←</span
|
|
|
|
>
|
2021-08-14 04:44:34 +00:00
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|