Hugo-theme-stack/layouts/partials/article/components/related-contents.html

14 lines
541 B
HTML
Raw Normal View History

<aside class="related-contents--wrapper">
{{ $related := (where (.Site.RegularPages.Related .) "Params.hidden" "!=" true) | first 5 }}
2020-08-22 07:20:08 -04:00
{{ with $related }}
<h2 class="section-title">{{ T "relatedContents" }}</h2>
2020-08-22 07:20:08 -04:00
<div class="related-contents">
<div class="flex article-list--tile">
{{ range . }}
{{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "articleList") }}
2020-08-22 07:20:08 -04:00
{{ end }}
</div>
</div>
{{ end }}
</aside>