mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
docs: Another fix related docs example
This commit is contained in:
parent
cedd04db31
commit
d5601e8391
1 changed files with 2 additions and 2 deletions
|
@ -88,13 +88,13 @@ weight = 80
|
||||||
{{ with $related }}
|
{{ with $related }}
|
||||||
<h2>See Also</h2>
|
<h2>See Also</h2>
|
||||||
<ul>
|
<ul>
|
||||||
{{ range . }}
|
{{ range $i, $p := . }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||||
{{ with .HeadingsFiltered }}
|
{{ with .HeadingsFiltered }}
|
||||||
<ul>
|
<ul>
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
{{ $link := printf "%s#%s" $.RelPermalink .ID | safeURL }}
|
{{ $link := printf "%s#%s" $p.RelPermalink .ID | safeURL }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ $link }}">{{ .Title }}</a>
|
<a href="{{ $link }}">{{ .Title }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue