2018-04-14 08:08:43 +02:00
|
|
|
{{ if .Params.twitter }}
|
2018-04-15 01:34:02 +02:00
|
|
|
<div class="mb-md blog-entry-header summary twitter" style="background-image: none;" data-href="{{ .Params.twitterUrl }}">
|
|
|
|
<div class="px-md has-text-weight-semibold">
|
2018-07-12 18:26:35 +02:00
|
|
|
<span class="h3">{{ .Date.Format $.Site.Params.fmt.Date }}</span> -
|
2018-04-14 22:19:56 +02:00
|
|
|
<span class="h3 moment-timeago">{{ .Date.Format $.Site.Params.fmt.ISO8601 }}</span>
|
|
|
|
</div>
|
|
|
|
<div class="mt-md px-md">
|
|
|
|
<span class="h3">{{ .Content }}</span>
|
|
|
|
</div>
|
2018-04-15 01:34:02 +02:00
|
|
|
<div class="px-md py-sm" style="position: absolute; bottom: 0; right: 0;">
|
|
|
|
<span class="h3">
|
2018-04-14 22:19:56 +02:00
|
|
|
<a href="{{ .Params.twitterUrl }}">View Tweet</a>
|
2018-04-14 08:08:43 +02:00
|
|
|
</span>
|
2018-04-14 22:19:56 +02:00
|
|
|
</div>
|
2018-04-14 08:08:43 +02:00
|
|
|
</div>
|
|
|
|
{{ else }}
|
|
|
|
{{ $author := index .Site.Data.authors ( .Params.author | default "" ) }}
|
2021-10-25 11:01:56 +02:00
|
|
|
{{ $original := (.Page.Resources.ByType "image").GetMatch "summary.png" }}
|
|
|
|
{{ $resized := $original.Resize "1280x q90 jpg" }}
|
|
|
|
<div class="mb-md blog-entry-header summary entry" style="background-image: url('{{ $resized.Permalink }}')" data-href="{{ .Permalink }}">
|
2018-04-14 22:19:56 +02:00
|
|
|
<div class="px-md">
|
|
|
|
<span class="title">{{ .Title }}</span>
|
2018-04-14 08:08:43 +02:00
|
|
|
</div>
|
2018-04-14 22:19:56 +02:00
|
|
|
<div class="px-md">
|
2018-07-12 18:26:35 +02:00
|
|
|
<span class="h3">{{ .Date.Format $.Site.Params.fmt.Date }}</span> -
|
2018-04-14 22:19:56 +02:00
|
|
|
<span class="h3 moment-timeago">{{ .Date.Format $.Site.Params.fmt.ISO8601 }}</span>
|
|
|
|
</div>
|
|
|
|
<div class="mt-md px-md">
|
|
|
|
<span class="h3">{{ .Summary }}</span>
|
|
|
|
</div>
|
2018-07-12 18:26:35 +02:00
|
|
|
<div style="position: absolute; bottom: -5px; right: 0;" class="px-md py-sm has-background-dark">
|
|
|
|
<span class="h3">
|
2018-04-14 22:19:56 +02:00
|
|
|
<a href="{{ .Permalink }}">Read More</a>
|
|
|
|
</span>
|
2018-04-14 08:08:43 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-12 18:26:35 +02:00
|
|
|
{{ end }}
|