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

13 lines
510 B
HTML
Raw Normal View History

2020-08-22 07:20:08 -04:00
<aside class="widget related-contents--wrapper">
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
2020-09-09 11:17:09 -04:00
<h1 class="widget-title">{{ T "relatedContents" }}</h1>
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>