theme-blog-ewen/layouts/partials/related.html

10 lines
288 B
HTML
Raw Normal View History

2020-04-12 08:16:04 +00:00
{{ $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 }}