mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-17 07:34:48 -04:00
Update related.md
This commit is contained in:
parent
7234e0189c
commit
97b4ef5442
@ -21,12 +21,12 @@ To list up to 5 related pages (which share the same _date_ or _keyword_ paramete
|
|||||||
{{< code file=layouts/partials/related.html >}}
|
{{< code file=layouts/partials/related.html >}}
|
||||||
{{ $related := .Site.RegularPages.Related . | first 5 }}
|
{{ $related := .Site.RegularPages.Related . | first 5 }}
|
||||||
{{ with $related }}
|
{{ with $related }}
|
||||||
<h3>See Also</h3>
|
<h3>See Also</h3>
|
||||||
<ul>
|
<ul>
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
|
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{< /code >}}
|
{{< /code >}}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user