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 }}
{{- with .OutputFormats.Get "PRINT" }}
<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>
</a>
</div>
@ -69,7 +69,7 @@
{{- if $File }}
{{- with $File.Path }}
<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>
</a>
</div>
@ -82,10 +82,10 @@
{{- $toc := (and $hastoc (not $currentDisableToc) (not .Params.chapter)) }}
<div id="breadcrumbs">
<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>
{{- 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 }}
{{- $showBreadcrumb := (and (not .Params.disableBreadcrumb) (not .Site.Params.disableBreadcrumb)) }}
{{- if $showBreadcrumb }}