blob: b3c573955b2db41071af5d81fced1c4fa4bd8c1c (
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
62
63
64
65
|
{{ define "main" }}
<section class="section bg-light">
<div class="container">
<div class="row">
<div class="col-lg-10 mx-auto">
<div class="text-center">
<figure>
{{ if .Params.Image }}
<img class="rounded-circle img-fluid mb-4" style="height:150px;width:150px;object-fit: cover;"
src="{{.Params.Image | absURL }}">
{{else if .Params.Email}}
<img class="rounded-circle img-fluid mb-4"
src="https://www.gravatar.com/avatar/{{ md5 .Params.email }}?s=128&pg&d=identicon">
{{ end }}
<figcaption>
<h4>{{ .Title }}</h4>
</figcaption>
</figure>
<hr>
{{ .Content }}
<hr>
<ul class="list-inline social-icons">
{{ range .Params.Social }}
<li class="list-inline-item"><a href="{{ .link | safeURL }}"><i class="{{ .icon }}"></i></a></li>
{{ end }}
</ul>
</div>
</div>
</div>
</div>
</section>
<section class="section-sm">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="title text-center">
<h2 class="mb-5">Posted By This Author</h2>
</div>
</div>
{{ range where .Site.RegularPages "Params.author" .Title }}
<div class="col-md-6 mb-4">
<div class="post post-sm">
<img src="{{ .Params.Image | absURL }}" class="img-fluid w-100" alt="{{ .Title }}">
<div class="post-content">
<div class="post-date">
<span>{{ .PublishDate.Format "02" }}</span>
<span>{{ .PublishDate.Format "Jan" }}</span>
</div>
<h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<ul class="list-inline post-meta">
<li class="list-inline-item"><i class="ti-tag"></i></li>
{{ range .Params.Tags }}
<li class="list-inline-item"><a
href="{{ `tags/` | relLangURL }}{{ . | urlize | lower }}">{{ . | humanize }}</a></li> {{ end }}
</ul>
</div>
</div>
</div>
{{ end }}
</div>
</div>
</section>
{{ end }}
|