2020-07-06 18:55:32 +00:00
|
|
|
{{ define "main" }}
|
|
|
|
<article class="gblog-post">
|
|
|
|
<header class="gblog-post__header">
|
2020-07-26 12:47:12 +00:00
|
|
|
{{ $source := ($.Resources.ByType "image").GetMatch "{*feature*,*cover*,*thumbnail*}" }}
|
|
|
|
{{ with $source }}
|
2020-07-27 18:17:55 +00:00
|
|
|
<div class="gblog-post__feature">
|
|
|
|
<picture>
|
|
|
|
{{ $featured := .Fill (printf "910x280 %s" (default "Smart" .Params.anchor)) }}
|
2020-07-26 12:47:12 +00:00
|
|
|
<source srcset="{{ $featured.Permalink }}">
|
|
|
|
<img src="{{ $featured.Permalink }}" alt="{{ default $.Title .Params.description }}" >
|
|
|
|
</picture>
|
2020-07-27 18:17:55 +00:00
|
|
|
{{ with $source.Params.credits }}
|
|
|
|
<span>Credits: {{ . | markdownify | safeHTML }}</span>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2020-07-26 12:47:12 +00:00
|
|
|
{{ end }}
|
|
|
|
|
2020-07-06 18:55:32 +00:00
|
|
|
<h1>{{ partial "title" . }}</h1>
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<section class="gblog-markdown">
|
|
|
|
{{ partial "content" . }}
|
|
|
|
</section>
|
|
|
|
</article>
|
|
|
|
{{ end }}
|