docs: Another fix related docs example - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit d5601e8391470be952ba48948c5a976884fea871
DIR parent cedd04db31d1088bac1aba1cfc49aa34d2b568ba
HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Thu, 23 Feb 2023 11:09:55 +0100
docs: Another fix related docs example
Diffstat:
M docs/content/en/content-management… | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/docs/content/en/content-management/related.md b/docs/content/en/content-management/related.md
@@ -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>