mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
- simplify html - fix rtl item alignment - fix empty span tag when showDate is false - align hover effect with other element, removes group hover underline
48 lines
2.0 KiB
HTML
48 lines
2.0 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 class="flex flex-col">
|
|
{{ if $prev }}
|
|
<a
|
|
class="flex text-neutral-700 hover:text-primary-600 dark:text-neutral dark:hover:text-primary-400"
|
|
href="{{ $prev.RelPermalink }}">
|
|
<span class="leading-6">
|
|
<span class="inline-block rtl:rotate-180">←</span> {{ $prev.Title | emojify }}
|
|
</span>
|
|
</a>
|
|
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
|
<span class="ms-6 mt-1 text-xs text-neutral-500 dark:text-neutral-400">
|
|
{{ partial "meta/date.html" $prev.Date }}
|
|
</span>
|
|
{{ end }}
|
|
{{ end }}
|
|
</span>
|
|
<span class="flex flex-col items-end">
|
|
{{ if $next }}
|
|
<a
|
|
class="flex text-right text-neutral-700 hover:text-primary-600 dark:text-neutral dark:hover:text-primary-400"
|
|
href="{{ $next.RelPermalink }}">
|
|
<span class="leading-6">
|
|
{{ $next.Title | emojify }} <span class="inline-block rtl:rotate-180">→</span>
|
|
</span>
|
|
</a>
|
|
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
|
<span class="me-6 mt-1 text-xs text-neutral-500 dark:text-neutral-400">
|
|
{{ partial "meta/date.html" $next.Date }}
|
|
</span>
|
|
{{ end }}
|
|
{{ end }}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|