fixing images in list to be fit to top and cropped
This commit is contained in:
parent
af362f436d
commit
35425157b0
2 changed files with 56 additions and 13 deletions
|
@ -4,7 +4,7 @@
|
|||
{{ $articleClasses = delimit (slice $articleClasses "border" "border-neutral-200 dark:border-neutral-700 border-2 rounded-xl") " thumbnailshadow " }}
|
||||
{{ end }}
|
||||
|
||||
{{ $articleImageClasses := "w-10px md:w-1/3 h-full object-cover thumbnail nozoom" }}
|
||||
{{ $articleImageClasses := "object-cover object-top w-full h-64 nozoom" }}
|
||||
{{ if .Site.Params.list.showCards }}
|
||||
{{ $articleImageClasses = delimit (slice $articleImageClasses "rounded-lg") " " }}
|
||||
{{ else }}
|
||||
|
@ -32,8 +32,8 @@
|
|||
{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
|
||||
{{- with $featured -}}
|
||||
{{ with .Resize "600x" }}
|
||||
<div class="{{ $articleImageClasses }}">
|
||||
<image class="{{ $articleImageClasses }} object-scale-down" src="{{ .RelPermalink }}"></image>
|
||||
<div class="w-full md:w-1/3 ">
|
||||
<image class="{{ $articleImageClasses }}" src="{{ .RelPermalink }}"></image>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{- else -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue