docs: Fix related docs example

This commit is contained in:
Bjørn Erik Pedersen 2023-02-23 10:54:30 +01:00 committed by GitHub
parent 4bf91b9759
commit cedd04db31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ weight = 80
{{ with .HeadingsFiltered }} {{ with .HeadingsFiltered }}
<ul> <ul>
{{ range . }} {{ range . }}
{{ $link := printf "%s#%s" $.RelPermalink .ID }} {{ $link := printf "%s#%s" $.RelPermalink .ID | safeURL }}
<li> <li>
<a href="{{ $link }}">{{ .Title }}</a> <a href="{{ $link }}">{{ .Title }}</a>
</li> </li>