hugo-theme-stack/layouts/partials/article/components/related-contents.html
2020-09-09 17:17:09 +02:00

13 lines
No EOL
489 B
HTML

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