Link AccessKeys shortcut in title of elements
This commit is contained in:
parent
23aeda369c
commit
a150c3449a
@ -32,8 +32,8 @@
|
|||||||
{{- if .Params.ShowToc }}
|
{{- if .Params.ShowToc }}
|
||||||
<div class="toc">
|
<div class="toc">
|
||||||
<details {{if .Params.TocOpen }} open{{ end }}>
|
<details {{if .Params.TocOpen }} open{{ end }}>
|
||||||
<summary>
|
<summary accesskey="c" title="(Alt + C)">
|
||||||
<div class="details" accesskey="c">{{- i18n "toc" | default "Table of Contents" }}</div>
|
<div class="details">{{- i18n "toc" | default "Table of Contents" }}</div>
|
||||||
</summary>
|
</summary>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
{{- partial "toc.html" . }}
|
{{- partial "toc.html" . }}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<span>·</span>
|
<span>·</span>
|
||||||
<span>Theme <a href="https://git.io/hugopapermod" rel="noopener" target="_blank">PaperMod</a></span>
|
<span>Theme <a href="https://git.io/hugopapermod" rel="noopener" target="_blank">PaperMod</a></span>
|
||||||
</footer>
|
</footer>
|
||||||
<button class="top-link" id="top-link" type="button" aria-label="go to top" title="Go to Top" accesskey="g">
|
<button class="top-link" id="top-link" type="button" aria-label="go to top" title="Go to Top (Alt + G)" accesskey="g">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6">
|
||||||
<path d="M12 6H0l6-6z" /></svg>
|
<path d="M12 6H0l6-6z" /></svg>
|
||||||
</button>
|
</button>
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
<header class="header">
|
<header class="header">
|
||||||
<nav class="nav">
|
<nav class="nav">
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<a href="{{ "" | absLangURL }}" accesskey="h">
|
<a href="{{ "" | absLangURL }}" accesskey="h" title="{{ .Site.Params.label.text | default .Site.Title }} (Alt + H)">
|
||||||
{{- if .Site.Params.label.icon }}
|
{{- if .Site.Params.label.icon }}
|
||||||
<img src="{{- .Site.Params.label.icon -}}" alt="logo" aria-label="logo"
|
<img src="{{- .Site.Params.label.icon -}}" alt="logo" aria-label="logo"
|
||||||
height="{{- .Site.Params.label.iconHeight | default "30px" -}}">
|
height="{{- .Site.Params.label.iconHeight | default "30px" -}}">
|
||||||
@ -59,7 +59,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<span class="logo-switches">
|
<span class="logo-switches">
|
||||||
{{- if (not .Site.Params.disableThemeToggle) }}
|
{{- if (not .Site.Params.disableThemeToggle) }}
|
||||||
<span class="theme-toggle">
|
<span class="theme-toggle" title="(Alt + T)">
|
||||||
<a id="theme-toggle" accesskey="t">
|
<a id="theme-toggle" accesskey="t">
|
||||||
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
|
||||||
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
|
||||||
|
Loading…
Reference in New Issue
Block a user