+ class="border-neutral-200 dark:border-neutral-700 border-2 rounded overflow-hidden shadow-2xl relative">
{{ $disableImageOptimization := .Page.Site.Params.disableImageOptimization | default false }}
- {{- with site.Params.images -}}
- {{- range first 6 . }}
-
- {{ end -}}
- {{- else -}}
- {{- $images := .Page.Resources.ByType "image" -}}
- {{- $featured := $images.GetMatch "*feature*" -}}
- {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
- {{- with $featured -}}
- {{ if $disableImageOptimization }}
- {{ with . }}
-
- {{ end }}
- {{ else }}
- {{ with .Resize "600x" }}
-
- {{ end }}
+ {{- $images := .Page.Resources.ByType "image" -}}
+ {{- $featured := $images.GetMatch "*feature*" -}}
+ {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
+ {{- with $featured -}}
+ {{ if $disableImageOptimization }}
+ {{ with . }}
+
{{ end }}
- {{- else -}}
- {{- with site.Params.images }}
-
- {{ end -}}
- {{- end -}}
+ {{ else }}
+ {{ with .Resize "600x" }}
+
+ {{ end }}
+ {{ end }}
{{- end -}}
{{ if site.Params.taxonomy.showTermCount | default true }}