feat: icon shift on header menu (#219)

This commit is contained in:
Robert Kaussow 2021-10-15 11:50:11 +02:00 committed by GitHub
parent 98110f1a09
commit d03c035d48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

View file

@ -19,12 +19,14 @@
{{ end }}
{{ if eq $target "header" }}
<span>
<a href="{{ if .external }}{{ .ref }}{{ else }}{{ relref $current .ref }}{{ end }}" class="gdoc-header__link">
<svg class="icon {{ .icon }}">
<title>{{ .name }}</title>
<use xlink:href="#{{ .icon }}"></use>
</svg>
</a>
</span>
{{ end }}
{{ end }}
{{ end }}