LeaveItFork/layouts/partials/related.html

9 lines
207 B
HTML
Raw Permalink Normal View History

2018-09-12 16:14:09 +00:00
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<h3>Similar articles:</h3>
<ul>
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}