Files
blog/layouts/partials/related.html
Hannes Körber 7411bfccbd
Some checks failed
continuous-integration/drone/push Build is failing
Initial commit.
2023-10-12 17:32:50 +02:00

19 lines
313 B
HTML

{{ $related := .Site.RegularPages.Related . | first 3 }}
{{ if gt (len $related) 0 }}
{{ with $related }}
<div class="content">
<h3>See also</h3>
<ul>
{{ range . }}
<li>
<a href="{{ .RelPermalink }}">
{{- .Title -}}
</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}
{{ end }}