Fit images to 1920x1080
This commit is contained in:
parent
daab1ab16e
commit
78848bd6ee
|
@ -3,7 +3,8 @@
|
||||||
<header class="mb:32">
|
<header class="mb:32">
|
||||||
<div class="font:40 font:extrabold">{{ .Title }}</div>
|
<div class="font:40 font:extrabold">{{ .Title }}</div>
|
||||||
{{ with resources.GetMatch .Params.banner }}
|
{{ 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 }}
|
{{ end }}
|
||||||
<div class="mt:16 f:fade-60">
|
<div class="mt:16 f:fade-60">
|
||||||
{{- if isset .Params "date" -}}
|
{{- if isset .Params "date" -}}
|
||||||
|
|
Loading…
Reference in New Issue