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

10 lines
299 B
HTML
Raw Normal View History

2023-12-15 16:26:57 +00:00
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
2022-03-31 04:22:55 +00:00
<h3>{{ i18n "related-articles" }}</h3>
2023-12-15 16:26:57 +00:00
<ul>
{{ range . }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a> <span class="article-date">- {{ i18n "readingTimeValue" .ReadingTime }}</span></li>
{{ end }}
</ul>
{{ end }}