summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2021-05-20 18:58:02 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2021-05-20 19:00:15 +0200
commit553d378db316994f465c0025975c2c78ef6dacb4 (patch)
treee967e30ac575e0a7f9fd090138e385766a294666 /layouts
parent195138cad00638798c4800e97df6de7d9c4bfbd6 (diff)
Fix lighthouse remarks: icon sizes, noopener
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/docs/menu-filetree.html2
-rw-r--r--layouts/shortcodes/button.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/docs/menu-filetree.html b/layouts/partials/docs/menu-filetree.html
index a4835b2..f8290df 100644
--- a/layouts/partials/docs/menu-filetree.html
+++ b/layouts/partials/docs/menu-filetree.html
@@ -31,7 +31,7 @@
{{ if .Page.Params.bookCollapseSection }}
<input type="checkbox" id="section-{{ md5 .Page }}" class="toggle" {{ if or $current $ancestor }}checked{{ end }} />
<label for="section-{{ md5 .Page }}" class="flex justify-between">
- <a {{ if .Page.Content }}href="{{ .Page.Permalink }}"{{ end }} class="{{ if $current }}active{{ end }}">
+ <a {{ if .Page.Content }}href="{{ .Page.Permalink }}"{{ else }}role="button"{{ end }} class="{{ if $current }}active{{ end }}">
{{- partial "docs/title" .Page -}}
</a>
</label>
diff --git a/layouts/shortcodes/button.html b/layouts/shortcodes/button.html
index 337a50f..8ac2d7e 100644
--- a/layouts/shortcodes/button.html
+++ b/layouts/shortcodes/button.html
@@ -7,6 +7,6 @@
{{ with .Get "relref" }}
{{ $ref = relref $ . }}
{{ end }}
-<a {{ with $ref }} href="{{.}}" {{ end }} {{ with $target }} target="{{.}}" {{ end }} class="book-btn{{ with .Get "class" }} {{ . }}{{ end }}">
+<a {{ with $ref }} href="{{.}}" {{ end }} {{ with $target }} target="{{.}}" rel="noopener" {{ end }} class="book-btn{{ with .Get "class" }} {{ . }}{{ end }}">
{{ $.Inner | markdownify }}
</a>