hugo-theme-stack/layouts/partials/article/components/related-contents.html
2020-08-22 13:20:08 +02:00

13 lines
No EOL
480 B
HTML

<aside class="widget related-contents--wrapper">
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<h1 class="widget-title">Related contents</h1>
<div class="related-contents">
<div class="flex article-list--tile">
{{ range . }}
{{ partial "article-list/tile" (dict "context" . "size" "250x350") }}
{{ end }}
</div>
</div>
{{ end }}
</aside>