theme-blog-ewen/layouts/partials/related.html
2020-04-12 10:16:04 +02:00

10 lines
288 B
HTML

{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<h3>Billets similaires</h3>
<ul>
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a> <span class="article-date">- {{ i18n "readingTimeValue" .ReadingTime }}</span></li>
{{ end }}
</ul>
{{ end }}