docs: Another fix related docs example

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

View file

@ -88,13 +88,13 @@ weight = 80
{{ with $related }}
<h2>See Also</h2>
<ul>
{{ range . }}
{{ range $i, $p := . }}
<li>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ with .HeadingsFiltered }}
<ul>
{{ range . }}
{{ $link := printf "%s#%s" $.RelPermalink .ID | safeURL }}
{{ $link := printf "%s#%s" $p.RelPermalink .ID | safeURL }}
<li>
<a href="{{ $link }}">{{ .Title }}</a>
</li>