feat: add option to set rel attribute in bundle and extra menu (#968)

This commit is contained in:
Robert Kaussow 2025-02-09 22:06:00 +01:00 committed by GitHub
parent eecddaf0f1
commit f9ff25f6a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 0 deletions

View File

@ -8,6 +8,7 @@ main:
en: Level 1.1 (EN)
de: Level 1.1 (DE)
ref: "/toc-tree/level-1/level-1-1"
rel: me
- name: Level 1.2
ref: "/toc-tree/level-1/level-1-2"
- name: Level 1.3

View File

@ -60,6 +60,9 @@
class="gdoc-nav__entry{{- if not .external }}
{{- if $isCurrent }}{{ printf " is-active" }}{{ end }}
{{- end }}"
{{ if .rel -}}
rel="{{ .rel }}"
{{- end }}
>
{{ $name }}
</a>

View File

@ -33,6 +33,9 @@
{{ relref $current .ref }}
{{- end }}"
class="gdoc-header__link"
{{ if .rel -}}
rel="{{ .rel }}"
{{- end }}
>
<svg class="gdoc-icon {{ .icon }}">
<title>{{ $name }}</title>