-
Notifications
You must be signed in to change notification settings - Fork 183
/
li.html
31 lines (31 loc) · 1.39 KB
/
li.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
{{ $baseurl := .Site.BaseURL }}
<article class="post {{ .Section }}">
<header class="post-header">
<h2 class="post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
</header>
<section class="post-excerpt">
<p>{{ .Summary }} <a class="read-more" href="{{.RelPermalink}}">»</a></p>
</section>
<footer class="post-meta">
{{$author := index .Site.Data.authors .Params.author }}
{{ if isset $author "thumbnail" }}
<img class="author-thumb" src="{{ .Site.BaseURL }}{{ $author.thumbnail }}" alt="Author image" nopin="nopin" />
{{else if .Site.Params.logo }}
<img class="author-thumb" src="{{ .Site.BaseURL }}{{.Site.Params.logo}}" alt="Author image" nopin="nopin" />
{{end}}
{{if and (ne .Params.author .Site.Params.author) .Params.author}}
{{$author := index .Site.Data.authors .Params.author }}
{{$author.name}}
{{else if .Site.Params.author}}
{{.Site.Params.author}}
{{end}}
{{if .Params.tags }}on
{{ range $index, $tag := .Params.tags }}
<a href="{{$baseurl}}tags/{{ $tag | urlize }}/">#{{ $tag }}</a>,
{{ end }}
{{end}}
<time class="post-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
{{ .Date.Format "2 Jan 2006" }}
</time>
</footer>
</article>