theme: add keyboard shortcut hints #268

This commit is contained in:
Sören Weber 2022-06-07 01:45:08 +02:00
parent f1ec2d2417
commit 0b5e21f488
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589

View file

@ -58,7 +58,7 @@
{{- end }} {{- end }}
{{- with .OutputFormats.Get "PRINT" }} {{- with .OutputFormats.Get "PRINT" }}
<div id="top-print-link"> <div id="top-print-link">
<a class="print-link" title='{{ T "Print-this-chapter" }}' href="{{ .RelPermalink }}"> <a class="print-link" title='{{ T "Print-this-chapter" }} (CTRL+ALT+t)' href="{{ .RelPermalink }}">
<i class="fas fa-print fa-fw"></i> <i class="fas fa-print fa-fw"></i>
</a> </a>
</div> </div>
@ -69,7 +69,7 @@
{{- if $File }} {{- if $File }}
{{- with $File.Path }} {{- with $File.Path }}
<div id="top-github-link"> <div id="top-github-link">
<a class="github-link" title='{{ T "Edit-this-page" }}' href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank"> <a class="github-link" title='{{ T "Edit-this-page" }} (CTRL+ALT+e)' href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank">
<i class="fas fa-pen fa-fw"></i> <i class="fas fa-pen fa-fw"></i>
</a> </a>
</div> </div>
@ -82,10 +82,10 @@
{{- $toc := (and $hastoc (not $currentDisableToc) (not .Params.chapter)) }} {{- $toc := (and $hastoc (not $currentDisableToc) (not .Params.chapter)) }}
<div id="breadcrumbs"> <div id="breadcrumbs">
<span id="sidebar-toggle-span"> <span id="sidebar-toggle-span">
<a href="#" id="sidebar-toggle" title='{{ T "Navigation-toggle" }}'><i class="fas fa-bars fa-fw"></i></a> <a href="#" id="sidebar-toggle" title='{{ T "Navigation-toggle" }} (CTRL+ALT+m)'><i class="fas fa-bars fa-fw"></i></a>
</span> </span>
{{- if $toc }} {{- if $toc }}
<span id="toc-menu" title='{{ T "Toc-toggle" }}'><i class="fas fa-list-alt fa-fw"></i></span> <span id="toc-menu" title='{{ T "Toc-toggle" }} (CTRL+ALT+t)'><i class="fas fa-list-alt fa-fw"></i></span>
{{- end }} {{- end }}
{{- $showBreadcrumb := (and (not .Params.disableBreadcrumb) (not .Site.Params.disableBreadcrumb)) }} {{- $showBreadcrumb := (and (not .Params.disableBreadcrumb) (not .Site.Params.disableBreadcrumb)) }}
{{- if $showBreadcrumb }} {{- if $showBreadcrumb }}