2022-04-05 21:31:50 +00:00
|
|
|
{{ define "main" }}
|
2024-04-13 11:51:53 +00:00
|
|
|
<article class="box:border-box">
|
2022-04-11 17:33:41 +00:00
|
|
|
<header class="mb:32">
|
2022-04-07 20:15:42 +00:00
|
|
|
<div class="font:40 font:extrabold">{{ .Title }}</div>
|
2024-04-14 06:14:57 +00:00
|
|
|
{{ with resources.GetMatch .Params.banner }}
|
2024-04-14 06:19:31 +00:00
|
|
|
{{ $image := .Fit "1920x1080" }}
|
|
|
|
<img class="mt:16" src="{{ $image.RelPermalink }}" width="{{ $image.Width }}">
|
2024-04-14 06:14:57 +00:00
|
|
|
{{ end }}
|
2022-05-10 06:19:12 +00:00
|
|
|
<div class="mt:16 f:fade-60">
|
2022-04-05 21:31:50 +00:00
|
|
|
{{- if isset .Params "date" -}}
|
|
|
|
{{ if eq .Lastmod .Date }}
|
2022-04-07 20:15:42 +00:00
|
|
|
<time>{{ .Date | time.Format (":date_medium") }}</time>
|
2022-04-05 21:31:50 +00:00
|
|
|
{{ else }}
|
2022-04-07 20:15:42 +00:00
|
|
|
<time>{{ .Lastmod | time.Format (":date_medium") }}</time>
|
2022-04-05 21:31:50 +00:00
|
|
|
{{ end }}
|
|
|
|
{{- end -}}
|
|
|
|
</div>
|
|
|
|
</header>
|
2022-04-12 19:01:56 +00:00
|
|
|
{{- partial "prose.html" . -}}
|
2022-04-05 21:31:50 +00:00
|
|
|
</article>
|
2024-04-13 10:31:46 +00:00
|
|
|
{{ end }}
|