{{/* Used by 1. list.html and term.html (when the cardView option is enabled) 2. Recent articles template (when the cardView option is enabled) 3. Shortcode list.html */}} {{ $disableImageOptimization := .Page.Site.Params.disableImageOptimization | default false }} {{ $featured := "" }} {{ $featuredURL := "" }} {{ if not .Params.hideFeatureImage }} {{ with .Params.featureimage }} {{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }} {{ $featured = resources.GetRemote . }} {{ else }} {{ $featured = resources.Get . }} {{ end }} {{ end }} {{ if not $featured }} {{ $images := $.Resources.ByType "image" }} {{ range slice "*feature*" "*cover*" "*thumbnail*" }} {{ if not $featured }}{{ $featured = $images.GetMatch . }}{{ end }} {{ end }} {{ if not $featured }} {{ with .Site.Params.defaultFeaturedImage }}{{ $featured = resources.Get . }}{{ end }} {{ end }} {{ end }} {{ with $featured }} {{ $featuredURL = .RelPermalink }} {{ if not (or $disableImageOptimization (eq .MediaType.SubType "svg")) }} {{ $featuredURL = (.Resize "600x").RelPermalink }} {{ end }} {{ end }} {{ end }}
{{ with $featuredURL }}
{{ $.Title }}
{{ end }} {{ if and .Draft .Site.Params.article.showDraftLabel }} {{ partial "badge.html" (i18n "article.draft" | emojify) }} {{ end }}

{{ .Title | emojify }} {{ if .Params.externalUrl }} {{ end }}

{{ partial "article-meta/basic.html" . }}
{{ if .Params.showSummary | default (.Site.Params.list.showSummary | default false) }}
{{ .Summary | plainify }}
{{ end }}