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: 3034fbb9281835a2b967e4bb7ede52d816fc358c (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
{{- 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">
<article>
<h3 class="title small"><a href="{{ .RelPermalink }}">{{.Title}}{{ if .Draft }}<sup class="draft-label">DRAFT</sup>{{ end }}</a></h3>
<p class="post-meta">
{{ partial "post_meta.html" . }}
</p>
<span class="description">{{ if isset .Params "description" }}{{ .Description }}{{ else }}{{ .Plain  | htmlUnescape | safeHTML | truncate 140 }}{{ end }}</span>
</article>
</div>
</div>
</li>
{{- end }}
{{- end }}
</ul>
{{- end }}