Skip to content

Commit

Permalink
DOCS-420: Fix heading links for glossary (#1853)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Sep 20, 2023
1 parent 4b524a8 commit 6ed1326
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions layouts/docs/glossary.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,9 @@ <h1>{{ .Title }}</h1>
{{ $glossary_terms := sort . "Title" "asc" }}
{{ range $glossary_terms }}
{{ $term_identifier := (printf "term-%s" .Params.id) }}
<div id="{{ $term_identifier }}"></div>
<div>
<div>
<a href="{{ printf "#%s" $term_identifier }}" class="glossary-anchor">
<b>{{ .Title }}</b>
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="22" height="22" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"></path><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg>
</a>
<h4 id="{{ printf "%s" $term_identifier }}" class="glossary-anchor">{{ .Title }}</h4>
</div>
<div id="{{ .Params.id }}">
{{ .Content | strings.TrimPrefix .Summary | safeHTML }}
Expand Down

0 comments on commit 6ed1326

Please sign in to comment.