Welcome to mirror list, hosted at ThFree Co, Russian Federation.

related-contents.html « components « article « partials « layouts - github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 810b8e9da29d182e80add2e932184ea086fe9e36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<aside class="related-contents--wrapper">
    {{ $related := (where (.Site.RegularPages.Related .) "Params.hidden" "!=" true) | first 5 }}
    {{ with $related }}
        <h2 class="section-title">{{ T "article.relatedContents" }}</h2>
        <div class="related-contents">
            <div class="flex article-list--tile">
                {{ range . }}
                    {{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "articleList") }}
                {{ end }}
            </div>
        </div>
    {{ end }}
</aside>