1
Fork 0

Make list images slightly larger

Makes them look crisper
This commit is contained in:
Jake Howard 2020-09-10 09:21:43 +01:00
parent ff2e079dbc
commit ccbf904010
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -5,7 +5,7 @@
{{ .Scratch.Set "image" .Params.image }} {{ .Scratch.Set "image" .Params.image }}
{{ if hasPrefix .Params.image "resource:" }} {{ if hasPrefix .Params.image "resource:" }}
{{ $resource := .Resources.GetMatch (replace .Params.image "resource:" "") }} {{ $resource := .Resources.GetMatch (replace .Params.image "resource:" "") }}
{{ .Scratch.Set "image" ($resource.Resize "300x").RelPermalink }} {{ .Scratch.Set "image" ($resource.Resize "500x").RelPermalink }}
{{ end }} {{ end }}
<div class="image" data-image='{{ .Scratch.Get "image" }}'></div> <div class="image" data-image='{{ .Scratch.Get "image" }}'></div>
</a> </a>
@ -19,4 +19,3 @@
<p>{{ partial "summary.html" . }}</p> <p>{{ partial "summary.html" . }}</p>
</div> </div>
</div> </div>