Add related pages section

This commit is contained in:
Joshua Goins 2022-09-12 10:53:34 -04:00
parent 9f551e3e93
commit ecf3243441

View file

@ -2,4 +2,14 @@
<h2>{{ .Title }}</h2> <h2>{{ .Title }}</h2>
{{ .Content }} {{ .Content }}
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<h3>See Also</h3>
<ul>
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}
{{ end }} {{ end }}