Fit images to 1920x1080

This commit is contained in:
ekzyis 2024-04-14 08:19:31 +02:00
parent daab1ab16e
commit 78848bd6ee
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,8 @@
<header class="mb:32">
<div class="font:40 font:extrabold">{{ .Title }}</div>
{{ with resources.GetMatch .Params.banner }}
<img class="mt:16" src="{{ .RelPermalink }}" width="{{ .Width }}">
{{ $image := .Fit "1920x1080" }}
<img class="mt:16" src="{{ $image.RelPermalink }}" width="{{ $image.Width }}">
{{ end }}
<div class="mt:16 f:fade-60">
{{- if isset .Params "date" -}}