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 }}
|
2020-02-18 17:44:24 +00:00
|
|
|
<h3>More {{ . }} Articles</h3>
|
2019-03-11 11:21:14 +00:00
|
|
|
<nav>
|
2020-02-18 17:44:24 +00:00
|
|
|
<ul class="see-also-list">
|
2019-03-11 11:21:14 +00:00
|
|
|
{{ $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 }}
|