nav: add keyboard shortcut hints #268

This commit is contained in:
Sören Weber 2022-06-07 20:23:55 +02:00
parent b5c98871cb
commit b0812bb28e
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -40,7 +40,7 @@
<div class="navigation"> <div class="navigation">
{{- if and $ispublished ($.Scratch.Get "relearnNextPage") }} {{- if and $ispublished ($.Scratch.Get "relearnNextPage") }}
{{- with ($.Scratch.Get "relearnNextPage") }} {{- with ($.Scratch.Get "relearnNextPage") }}
<a class="nav nav-next" href="{{.RelPermalink}}" title="{{.Title}}"><i class="fas fa-chevron-right fa-fw"></i></a> <a class="nav nav-next" href="{{.RelPermalink}}" title="{{.Title}} (&#129106;)"><i class="fas fa-chevron-right fa-fw"></i></a>
{{- end }} {{- end }}
{{- else }} {{- else }}
<span class="nav nav-next"><i class="fa fa-chevron-right fa-fw"></i></span> <span class="nav nav-next"><i class="fa fa-chevron-right fa-fw"></i></span>
@ -49,7 +49,7 @@
<div class="navigation"> <div class="navigation">
{{- if and $ispublished ($.Scratch.Get "relearnPrevPage") }} {{- if and $ispublished ($.Scratch.Get "relearnPrevPage") }}
{{- with ($.Scratch.Get "relearnPrevPage") }} {{- with ($.Scratch.Get "relearnPrevPage") }}
<a class="nav nav-prev" href="{{.RelPermalink}}" title="{{.Title}}"><i class="fas fa-chevron-left fa-fw"></i></a> <a class="nav nav-prev" href="{{.RelPermalink}}" title="{{.Title}} (&#129104;)"><i class="fas fa-chevron-left fa-fw"></i></a>
{{- end}} {{- end}}
{{- else }} {{- else }}
<span class="nav nav-prev"><i class="fa fa-chevron-left fa-fw"></i></span> <span class="nav nav-prev"><i class="fa fa-chevron-left fa-fw"></i></span>