mirror of https://github.com/jpanther/congo.git
66 lines
2.8 KiB
HTML
66 lines
2.8 KiB
HTML
{{ if .Params.showPagination | default (.Site.Params.article.showPagination | default true) }}
|
|
{{ if or .NextInSection .PrevInSection }}
|
|
{{ $next := .NextInSection }}
|
|
{{ $prev := .PrevInSection }}
|
|
{{ if .Params.invertPagination | default (.Site.Params.article.invertPagination | default false) }}
|
|
{{ $next = .PrevInSection }}
|
|
{{ $prev = .NextInSection }}
|
|
{{ end }}
|
|
<div class="pt-8">
|
|
<hr class="border-dotted border-neutral-300 dark:border-neutral-600" />
|
|
<div class="flex justify-between pt-3">
|
|
<span>
|
|
{{ if $prev }}
|
|
<a class="flex group" href="{{ $prev.RelPermalink }}">
|
|
<span
|
|
class="mr-3 ltr:inline rtl:hidden text-neutral-700 dark:text-neutral group-hover:text-primary-600 dark:group-hover:text-primary-400"
|
|
>←</span
|
|
>
|
|
<span
|
|
class="ml-3 ltr:hidden rtl:inline text-neutral-700 dark:text-neutral group-hover:text-primary-600 dark:group-hover:text-primary-400"
|
|
>→</span
|
|
>
|
|
<span class="flex flex-col">
|
|
<span
|
|
class="mt-[0.1rem] leading-6 group-hover:underline group-hover:decoration-primary-500"
|
|
>{{ $prev.Title | emojify }}</span
|
|
>
|
|
<span class="mt-[0.1rem] text-xs text-neutral-500 dark:text-neutral-400">
|
|
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
|
{{ partial "meta/date.html" $prev.Date }}
|
|
{{ end }}
|
|
</span>
|
|
</span>
|
|
</a>
|
|
{{ end }}
|
|
</span>
|
|
<span>
|
|
{{ if $next }}
|
|
<a class="flex text-right group" href="{{ $next.RelPermalink }}">
|
|
<span class="flex flex-col">
|
|
<span
|
|
class="mt-[0.1rem] leading-6 group-hover:underline group-hover:decoration-primary-500"
|
|
>{{ $next.Title | emojify }}</span
|
|
>
|
|
<span class="mt-[0.1rem] text-xs text-neutral-500 dark:text-neutral-400">
|
|
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
|
{{ partial "meta/date.html" $next.Date }}
|
|
{{ end }}
|
|
</span>
|
|
</span>
|
|
<span
|
|
class="ml-3 ltr:inline rtl:hidden text-neutral-700 dark:text-neutral group-hover:text-primary-600 dark:group-hover:text-primary-400"
|
|
>→</span
|
|
>
|
|
<span
|
|
class="mr-3 ltr:hidden rtl:inline text-neutral-700 dark:text-neutral group-hover:text-primary-600 dark:group-hover:text-primary-400"
|
|
>←</span
|
|
>
|
|
</a>
|
|
{{ end }}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|