blob: 552c6cbde05050fb928170be47a6d6ff1db5b2e5 (
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
|
{{ $customDateFormat := "02.01.2006" }}
{{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }}
<div class="card-content">
<h1 class="card-title"><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></h1>
<h6 class="grey-text">
<i class="tiny material-icons">calendar_today</i> {{ .PublishDate.Format $customDateFormat }}{{ if gt .Lastmod .PublishDate }}, {{ i18n "lastupdated" }} {{ .Lastmod.Format $customDateFormat }}{{ end }} -
<i class="tiny material-icons">person</i> {{ range .Site.Author }}{{ . }}{{ end }}
{{ if ne .Site.Params.hideReadingTime true }}
{{ if and (not (.Scratch.Get "showPostSummary")) (.Scratch.Get "fullsize") }}
- <i class="tiny material-icons">timer</i> ~{{ i18n "readingTime" .ReadingTime }}
{{ end }}
{{ end }}
</h6>
{{ if eq .Type "video" }}
{{ else if eq .Type "audio" }}
{{ else if eq .Type "link" }}
<p class="center-align"><a href="{{ .Params.link }}" target="_blank" class="btn btn-primary btn-lg" tabindex="-1" role="button"><i class="fas fa-link"></i> {{ .Title }}</a></p>
{{ else if eq .Type "quote" }}
<blockquote class="center-align">
<p><i class="fas fa-quote-left fa-2x"></i> {{ .Params.quote }} <i class="fas fa-quote-right fa-2x"></i></p>
<p class="grey-text"><cite title="{{ .Params.quoteauthor }}">{{ .Params.quoteauthor }}</cite></p>
</blockquote>
{{ end }}
{{ if .Scratch.Get "showPostSummary" }}
<p>{{ .Summary }}</p>
<p><br />
<a href="{{ .RelPermalink }}" class="blue waves-effect waves-light btn"><i class="material-icons right">navigate_next</i>{{ i18n "readmore" }}</a>
{{ if ne .Site.Params.hideReadingTime true }}
(<i class="tiny material-icons">timer</i> ~{{ .ReadingTime }} Min.)
{{end}}
</p>
{{ else }}
<p class="card-text">{{ .Content }}</p>
{{ end }}
</div>
|