mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 18:15:57 +00:00
docs: Another fix related docs example
This commit is contained in:
1 parent
17aa939ea7
commit
f916773779
1 file changed
+2
-2
@@ -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