blob: d98f9e1c545bc9997ddbba9c0bf2f3237bbdc67a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!-- Latest Posts -->
<section class="pagefind-exclude">
<div class="flex flex-col my-4">
{{ $firstPost := true }} <!-- 初始化标记 -->
{{ range first 8 (where site.RegularPages "Type" "in" site.Params.mainSections) }}
{{ partial "items/post" (dict
"ctx" .
"showSummary" $firstPost
) }}
{{ $firstPost = false }}
{{ end }}
</div>
<a href="/posts" class="small-button"
data-umami-event="➕ Click more posts link">
{{ T "moreLinks.posts" }} →
</a>
</section>
|