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

13 lines
501 B
HTML
Raw Permalink Normal View History

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