2019-05-01 17:01:25 +00:00
|
|
|
{{ $currentPageUrl := .RelPermalink }}
|
2019-03-11 11:21:14 +00:00
|
|
|
{{ if .Params.series }}
|
|
|
|
<section class="see-also">
|
|
|
|
{{ range .Params.series }}
|
|
|
|
{{ $name := . | urlize }}
|
|
|
|
{{ $series := index $.Site.Taxonomies.series $name }}
|
2019-04-01 23:11:27 +00:00
|
|
|
{{ if gt (len $series.Pages) 1 }}
|
|
|
|
<h3>See also in {{ . }}</h3>
|
2019-03-11 11:21:14 +00:00
|
|
|
<nav>
|
|
|
|
<ul>
|
|
|
|
{{ $maxItems := $.Site.Params.maxSeeAlsoItems | default 5 }}
|
|
|
|
{{ range first (add $maxItems 1) $series.Pages }}
|
2019-05-01 17:01:25 +00:00
|
|
|
{{ if ne .RelPermalink $currentPageUrl }}
|
2019-03-11 11:21:14 +00:00
|
|
|
<li>
|
2019-05-01 17:01:25 +00:00
|
|
|
<a href="{{ .Params.ExternalLink | default .RelPermalink }}">{{ .Title }}</a>
|
2019-03-11 11:21:14 +00:00
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</section>
|
|
|
|
{{ end }}
|