blob: 45b5f71f4a47489ff3656e5393097228fcae5d13 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{{ define "main" }}
<div class="layui-container" style="margin-bottom: 10px">
{{ $related := .Site.RegularPages.Related . | first 5 }}
<div class="layui-row layui-col-space10">
<div class="layui-col-md8 layui-col-sm12 layui-col-xs12">
<div class="layui-card single-card">
<br />
<blockquote class="self-elem-quote {{if isset $.Site.Params "quote"}}self-elem-quote-bg-{{index $.Site.Params.quote}}{{end}} markdown-body single-title" >
<h1>{{ .Title }}</h1>
{{partial "info" .}}
</blockquote>
<div class="layui-card-body markdown-body single-content">
{{ .Content }}
{{- partial "self-define-single.html" . -}}
</div>
</div>
</div>
<div class="layui-col-md4 layui-col-sm12 layui-col-xs12">
{{ if $related }}
<div class="layui-card single-card">
<h2 class="single-title">Relevant Topics</h2>
{{ with $related }}
{{ range . }}
<div style="margin-left: 10px;">
<blockquote class="self-elem-quote {{if isset $.Site.Params "quote"}}self-elem-quote-bg-{{index $.Site.Params.quote}}{{end}}" style="background-color:#FFFFFF;margin-top: 10px;">
<a href="{{.RelPermalink}}">
<h3 class="">{{.Title}}</h3>
</a>
{{partial "info" .}}
</blockquote>
</div>
{{ end }}
{{ end }}
<br />
</div>
{{ end }}
<div class="layui-card single-card">
<h2 class="single-title">Recent Posts</h2>
{{ with (.Site.GetPage "section" "post") }}
{{range first 5 .Pages.ByDate.Reverse}}
<div style="margin-left: 10px;">
<blockquote class="self-elem-quote {{if isset $.Site.Params "quote"}}self-elem-quote-bg-{{index $.Site.Params.quote}}{{end}}" style="background-color:#FFFFFF;margin-top: 10px;">
<a href="{{.RelPermalink}}">
<h3 class="">{{.Title}}</h3>
</a>
{{ partial "info" .}}
</blockquote>
</div>
{{end}}
{{ end }}
</div>
</div>
</div>
</div>
{{end}}
|