|
|
@ -1,10 +1,8 @@ |
|
|
|
{{- $alt := .Params.featured.alt }} |
|
|
|
{{- $img := .Resources.GetMatch "featured" }} |
|
|
|
<article class="index float-on-hover shadow"> |
|
|
|
<a href=" {{ .Permalink }}"> |
|
|
|
{{- with $img }} |
|
|
|
{{- with (.Resources.GetMatch "featured") }} |
|
|
|
{{- $resized := .Resize "256x webp q90" }} |
|
|
|
<img src={{ $resized.RelPermalink }} alt="{{ $alt }}"> |
|
|
|
<img src={{ $resized.RelPermalink }} alt="{{ .Params.alt }}"> |
|
|
|
{{- end }} |
|
|
|
<h3 class="title">{{ .Title | markdownify }}</h3> |
|
|
|
</a> |
|
|
|