summaryrefslogtreecommitdiff
path: root/layouts/_partials/home/latest-posts.html
blob: b86a4c5ccdf34f122cbc8e53208f125783ec796f (plain)
1
2
3
4
5
6
7
8
9
10
<!-- Latest Posts -->
<section class="flex flex-col my-4">
    {{ $postsn := 8 }}
    {{ if eq .Site.Language.Lang "zh" }}
        {{ $postsn = 1 }}
    {{ end }}
    {{ range first $postsn (where site.RegularPages "Type" "in" site.Params.mainSections) }}
        {{ .Render "view_postblock_home" }}    
    {{ end }}
</section>