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 }}
|
|
|
|
<div class="pt-8">
|
|
|
|
<hr class="border-gray-300 border-dotted dark:border-gray-600" />
|
|
|
|
<div class="flex justify-between pt-3">
|
|
|
|
<span>
|
|
|
|
{{ if .NextInSection }}
|
|
|
|
<a class="flex" href="{{ .NextInSection.Permalink }}">
|
2021-08-16 00:41:00 +00:00
|
|
|
<span class="mr-3">←</span>
|
2021-08-14 04:44:34 +00:00
|
|
|
<span class="flex flex-col">
|
|
|
|
<span class="button__text">{{ .NextInSection.Title }}</span>
|
2021-08-16 04:05:46 +00:00
|
|
|
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
2021-08-14 04:44:34 +00:00
|
|
|
<time
|
|
|
|
class="-mt-1 text-xs text-gray-400 dark:text-gray-500"
|
|
|
|
datetime="{{ .Date }}"
|
|
|
|
>
|
|
|
|
{{ .Date.Format .Site.Params.article.dateFormat | default "2 January 2006" }}
|
|
|
|
</time>
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
{{ if .PrevInSection }}
|
|
|
|
<a class="flex text-right" href="{{ .PrevInSection.Permalink }}">
|
|
|
|
<span class="flex flex-col">
|
|
|
|
<span>{{ .PrevInSection.Title }}</span>
|
2021-08-16 04:05:46 +00:00
|
|
|
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
|
2021-08-14 04:44:34 +00:00
|
|
|
<time
|
|
|
|
class="-mt-1 text-xs text-gray-400 dark:text-gray-500"
|
|
|
|
datetime="{{ .Date }}"
|
|
|
|
>
|
|
|
|
{{ .Date.Format .Site.Params.article.dateFormat | default "2 January 2006" }}
|
|
|
|
</time>
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
2021-08-16 00:41:00 +00:00
|
|
|
<span class="ml-3">→</span>
|
2021-08-14 04:44:34 +00:00
|
|
|
</a>
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|