forked from flysnow-org/maupassant-hugo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (43 loc) · 1.81 KB
/
index.html
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
48
49
{{ partial "head" . }}
<body>
{{ partial "header" . }}
<div id="body">
<div class="container">
<div class="col-group">
<div class="col-8" id="main">
<div class="res-cons">
{{ range $index,$data := (where .Paginator.Pages "Type" "post") }}
<article class="post">
<header>
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title }}</a>
</h1>
</header>
<date class="post-meta meta-date">
{{ .Date.Year }}年{{ printf "%d" .Date.Month }}月{{ .Date.Day }}日
{{ printf "%02d" .Date.Hour }}:{{ printf "%02d" .Date.Minute }}
</date>
{{ with .Params.Categories }}
<div class="post-meta meta-category">
|
{{ range . }}
<a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
</div>
{{ end }}
<div class="post-content">
{{ .Content | markdownify | truncate 180 }}
</div>
<p class="readmore"><a href="{{ .Permalink }}">阅读全文</a></p>
</article>
{{ end }}
{{ partial "paginator" . }}
</div>
</div>
{{ partial "sidebar" . }}
</div>
</div>
</div>
{{ partial "footer" . }}
</body>
</html>