You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
418 B
13 lines
418 B
{{ $num_to_show := .Site.Params.related_content_limit | default 7 }}
|
|
{{ $related := .Site.RegularPages.Related . | first $num_to_show }}
|
|
{{ with $related }}
|
|
<aside>
|
|
<header>Related Content</header>
|
|
<ul>
|
|
{{ range . }}
|
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
|
<time datetime="{{ .ReadingTime }}M">{{ .ReadingTime }} minutes</time>
|
|
{{ end }}
|
|
</ul>
|
|
</aside>
|
|
{{ end }}
|
|
|