{{ $articleClasses := "flex flex-wrap article" }} {{ if .Site.Params.list.showCards }} {{ $articleClasses = delimit (slice $articleClasses "border" "border-neutral-200 dark:border-neutral-700 border-2 rounded-md") " " }} {{ end }} {{ $articleImageClasses := "w-full md:w-auto h-full thumbnail nozoom" }} {{ if .Site.Params.list.showCards }} {{ $articleImageClasses = delimit (slice $articleImageClasses "") " " }} {{ else }} {{ $articleImageClasses = delimit (slice $articleImageClasses "thumbnailshadow md:mr-7") " " }} {{ end }} {{ $articleInnerClasses := "" }} {{ if .Site.Params.list.showCards }} {{ $articleInnerClasses = delimit (slice $articleInnerClasses "p-4") " " }} {{ else }} {{ $articleInnerClasses = delimit (slice $articleInnerClasses "mt-3 md:mt-0") " " }} {{ end }} {{ with .Params.externalUrl }} {{ else }} {{ end }} {{- with $.Params.images -}} {{- range first 6 . }} {{ end -}} {{- else -}} {{- $images := $.Resources.ByType "image" -}} {{- $featured := $images.GetMatch "*feature*" -}} {{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} {{- with $featured -}} {{- else -}} {{- with $.Site.Params.images }} {{ end -}} {{- end -}} {{- end -}} {{ with .Params.externalUrl }} {{ $.Title | emojify }} ↗ ↖ {{ else }} {{ .Title | emojify }} {{ end }} {{ if and .Draft .Site.Params.article.showDraftLabel }} {{ partial "badge.html" (i18n "article.draft" | emojify) }} {{ end }} {{ if templates.Exists "partials/extend-article-link.html" }} {{ partial "extend-article-link.html" . }} {{ end }} {{ partial "article-meta.html" . }} {{ if .Params.showSummary | default (.Site.Params.list.showSummary | default false) }} {{ .Summary | emojify }} {{ end }}
{{ .Title | emojify }}