fix: article card style
All checks were successful
Deploy workflow / deploy (push) Successful in 32s
All checks were successful
Deploy workflow / deploy (push) Successful in 32s
This commit is contained in:
parent
b622a9b57d
commit
205f7b421e
2 changed files with 18 additions and 11 deletions
|
|
@ -432,9 +432,14 @@
|
|||
{{ range $index, $element := $news }}{{ if eq $index 0 }}
|
||||
{{ $featuredImage := (resources.Get (printf "%s" ("cover/cover.jpg" | safeURL))) }}
|
||||
{{ with $element.Params.featured_image }}
|
||||
{{ $featuredImage = $element.Resources.GetMatch .src }}
|
||||
{{ if .square_src }}
|
||||
{{ $featuredImage = $element.Resources.GetMatch .square_src }}
|
||||
{{ else }}
|
||||
{{ $featuredImage = $element.Resources.GetMatch .src }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
{{ $featuredImage := $featuredImage.Crop "800x400 Center" }}
|
||||
{{ $featuredImage := $featuredImage.Crop "800x700 Center" }}
|
||||
<div
|
||||
class="prominent-article article-card"
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue