2019-01-13 16:31:10 +00:00
|
|
|
{{ $relatedMax := .Site.Params.relatedMax | default 5 }}
|
|
|
|
{{ $related := .Site.RegularPages.Related . | first $relatedMax }}
|
|
|
|
|
2018-11-15 14:11:46 +00:00
|
|
|
{{ if and ($related) (.Param "related") }}
|
2018-05-25 14:29:46 +00:00
|
|
|
<div class="related block">
|
|
|
|
<h3 class="related__title">{{ T "related_title" }}</h3>
|
|
|
|
<ul class="related__list">
|
2018-11-15 14:11:46 +00:00
|
|
|
{{ range $related }}
|
2018-05-25 14:29:46 +00:00
|
|
|
<li class="related__item"><a class="related__link" href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|