blob: 5b921e050e3ae38fa059b22729058c5a3d604cc5 (
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
44
45
46
47
|
{{ 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>
{{ range .Params.tags }}
<a class="post-tag" href="{{ site.LanguagePrefix }}/tags/{{ lower . | urlize }}/">#{{ . }}</a>
{{ end }}
</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 }}
|