aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/single.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2023-06-18 18:32:33 -0400
committertdro <tdro@noreply.example.com>2023-06-18 18:32:33 -0400
commiteaa731e5eddf263e12d46481a036cce9882bf72e (patch)
treea11c076ddf22b9c92d060dd0d6f620d9b06e5fc2 /themes/default/layouts/_default/single.html
parent61e5db6e54d264ca8950cd50e84032db4f167660 (diff)
downloadcanory-eaa731e5eddf263e12d46481a036cce9882bf72e.tar.gz
canory-eaa731e5eddf263e12d46481a036cce9882bf72e.tar.bz2
canory-eaa731e5eddf263e12d46481a036cce9882bf72e.zip
themes/default/layouts/partials/pagination: Simplify and prepare
Diffstat (limited to 'themes/default/layouts/_default/single.html')
-rw-r--r--themes/default/layouts/_default/single.html20
1 files changed, 8 insertions, 12 deletions
diff --git a/themes/default/layouts/_default/single.html b/themes/default/layouts/_default/single.html
index 8a6444d..f891a5e 100644
--- a/themes/default/layouts/_default/single.html
+++ b/themes/default/layouts/_default/single.html
@@ -20,34 +20,30 @@
<micro-thread>
{{- partial "render-embed.html" . -}}
- {{- $nextHref := "" -}}
- {{- $prevHref := "" -}}
- {{- $nextTitle := "" -}}
- {{- $prevTitle := "" -}}
- {{- $nextInvisible := "data-invisible" -}}
- {{- $prevInvisible := "data-invisible" -}}
+ {{- $prevHref := "/" -}}
+ {{- $nextHref := "/" -}}
+ {{- $prevTitle := "hidden" -}}
+ {{- $nextTitle := "hidden" -}}
{{- with .Next -}}
{{- $nextHref = $.Next.Permalink -}}
{{- $nextTitle = $.Next.Summary -}}
- {{- $nextInvisible = "" -}}
{{- end -}}
{{- with .Prev -}}
{{- $prevHref = $.Prev.Permalink -}}
{{- $prevTitle = $.Prev.Summary -}}
- {{- $prevInvisible = "" -}}
{{- end -}}
{{- with or .Next .Prev -}}
<paginator-navigation>
- <a {{ $nextInvisible | safeHTMLAttr }} href="{{ $nextHref }}" title="{{ $nextTitle }}">
+ <a href="{{ $nextHref }}" title="{{ $nextTitle }}">
{{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/arrow-left.svg")) }}
- Newer
+ <header>Newer</header>
</a>
- <a {{ $prevInvisible | safeHTMLAttr }} href="{{ $prevHref }}" title="{{ $prevTitle }}">
- Older
+ <a href="{{ $prevHref }}" title="{{ $prevTitle }}">
+ <header>Older</header>
{{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/arrow-right.svg")) }}
</a>
</paginator-navigation>