mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
docs: Another fix related docs example
This commit is contained in:
committed by
GitHub
parent
cedd04db31
commit
d5601e8391
@@ -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>
|
||||||
|
Reference in New Issue
Block a user