A lot of small changes improving keyboard navigation, readability and accesibility

This commit is contained in:
Alex Shpak
2025-10-09 22:58:13 +02:00
parent 0593f02604
commit 6baf098e54
27 changed files with 95 additions and 101 deletions
+20 -12
View File
@@ -24,6 +24,7 @@
{{ template "comments" . }} <!-- Comments block -->
{{ partial "docs/inject/footer" . }}
{{ template "copyright" . }} <!-- Copyright block -->
{{ template "clipboard" . }}
</footer>
<label for="menu-control" class="hidden book-menu-overlay"></label>
@@ -62,12 +63,19 @@
{{ partial "docs/footer" . }}
{{ end }}
{{ define "copyright" }}
{{ if .Site.Copyright }}
<div class="book-copyright flex justify-center">
{{ partial "docs/copyright" . }}
</div>
{{ define "clipboard" }}
<!-- Clipboard -->
{{ with resources.Get "clipboard.js" | resources.Minify }}
<script>{{ .Content | safeJS }}</script>
{{ end }}
{{ end }}
{{ define "copyright" }}
{{ if .Site.Copyright }}
<div class="book-copyright flex justify-center">
{{ partial "docs/copyright" . }}
</div>
{{ end }}
{{ end }}
{{ define "comments" }}
@@ -85,13 +93,13 @@
{{ end }}
{{ define "toc-container" }}
{{ if partial "docs/toc-show" . }}
<aside class="book-toc">
<div class="book-toc-content">
{{ template "toc" . }}
</div>
</aside>
{{ end }}
{{ if partial "docs/toc-show" . }}
<aside class="book-toc">
<div class="book-toc-content">
{{ template "toc" . }}
</div>
</aside>
{{ end }}
{{ end }}
{{ define "toc" }}