diff options
author | tdro <tdro@noreply.example.com> | 2023-06-18 18:32:33 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2023-06-18 18:32:33 -0400 |
commit | eaa731e5eddf263e12d46481a036cce9882bf72e (patch) | |
tree | a11c076ddf22b9c92d060dd0d6f620d9b06e5fc2 /themes/default/layouts/_default | |
parent | 61e5db6e54d264ca8950cd50e84032db4f167660 (diff) | |
download | canory-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')
-rw-r--r-- | themes/default/layouts/_default/section.following.html | 2 | ||||
-rw-r--r-- | themes/default/layouts/_default/single.html | 20 |
2 files changed, 9 insertions, 13 deletions
diff --git a/themes/default/layouts/_default/section.following.html b/themes/default/layouts/_default/section.following.html index 48afa7d..eef5e12 100644 --- a/themes/default/layouts/_default/section.following.html +++ b/themes/default/layouts/_default/section.following.html @@ -55,7 +55,7 @@ title="Follow {{ $distinct.FeedName }}" href="{{ $href }}"> {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/rss.svg")) }} - <span>Follow</span> + <header>Follow</header> </a> </micro-summary> </micro-card> 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> |