theme-blog-ewen/layouts/partials/related.html
2022-03-31 06:22:55 +02:00

10 lines
299 B
HTML

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