{{ 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 }}