Welcome to mirror list, hosted at ThFree Co, Russian Federation.

list.html « _default « layouts - github.com/dataCobra/hugo-vitae.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7f93a560838a18e0aa5472be82bb9638f319b8f0 (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
{{- define "main" }}
{{- if isset .Data "Term" }}
<h1 class="page-title">{{ humanize .Data.Term }}</h1>
{{- else }}
<h1 class="page-title">{{ .Title }}</h1>
{{- end -}}
{{ .Content }}
<ul class="posts flat">
{{- range .Data.Pages }}
{{- if (in .Site.Params.excludedTypes .Type) }}
{{- else }}
<li class="post">
<div class="post-header">
<div class="meta">
<div class="date">
<span class="day">{{ dateFormat "02" .Date }}</span>
<span class="rest">{{ if $.Site.Data.month }}{{ index $.Site.Data.month (printf "%d" .Date.Month) }} {{ .Date.Year }}{{ else }}{{ dateFormat "Jan 2006" .Date }}{{ end }}</span>
</div>
</div>
<div class="matter">
<h3 class="title small"><a href="{{ .RelPermalink }}">{{.Title}}{{ if .Draft }}<sup class="draft-label">DRAFT</sup>{{ end }}</a></h3>
{{- if eq .Site.Params.listAuthor true }}
<div class="author">
{{- if isset .Params "author" -}}
{{- if isset .Params "authorlink" -}}
{{ i18n "authorpretext" }} <a href="{{ relURL .Params.authorlink }}" target="_blank" rel="noopener noreferrer">{{ .Params.author }}</a>
{{- else -}}
{{ i18n "authorpretext" }} {{ .Params.author }}
{{- end -}}
{{- end -}}
</div>
{{- end }}
<span class="description">{{ if isset .Params "description" }}{{ .Description }}{{ else }}{{ .Plain  | htmlUnescape | safeHTML | truncate 140 }}{{ end }}</span>
</div>
</div>
</li>
{{- end }}
{{- end }}
</ul>
{{- end }}