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

16 lines
587 B
HTML

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