blob: 86d5f53ab78621bd9710e56c8c530442c1500d12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{{ define "main" }}
<article class="index">
{{ partial "header.html" . }}
{{ partial "components/postnav.html" . }}
<div class="markdown-content" style="line-height: 2">
{{ .Content }}
</div>
<!-- Latest Posts -->
<section id="featured-posts">
<div class="posts-list">
{{ range where site.RegularPages "Params.featured" true }}
<div class="posts-item"
style="view-transition-name: post-{{ .File.UniqueID }}">
<header>
<div class="posts-item-meta">
<p>
<time>{{ .Date.Format "Jan 2, 2006" }}</time>
<span>·</span>
{{ partial "components/tags" . }}
</p>
<h2 class="posts-item-title">
<a
href="{{ .Permalink }}"
data-umami-event="🪶 Click post link from featured"
>
{{ if eq .Section "library" }}
读《{{ .Title }}》
{{ else }}
{{ .Title }}
{{ end }}
</a>
</h2>
</div>
</header>
</div>
{{ end }}
</div>
</section>
</article>
{{ partial "footer.html" . }}
{{ end }}
|