{{ with .Params.externalUrl }} {{ else }} {{ end }}
{{- with $.Params.images -}} {{- range first 6 . }} {{ end -}} {{- else -}} {{ $images := $.Resources.ByType "image" }} {{ $featuredImage := $images.GetMatch "*feature*" }} {{ if not $featuredImage }} {{ $featuredImage = $images.GetMatch "{*cover*,*thumbnail*}" }} {{ end }} {{ if and (not $featuredImage) .Params.featureimage }} {{ $featuredImage = resources.GetRemote .Params.featureimage }} {{ end }} {{ if not $featuredImage }} {{ $featuredImage = resources.Get .Site.Params.defaultFeaturedImage }} {{ end }} {{ $disableImageOptimization := .Page.Site.Params.disableImageOptimization | default false }} {{ if and ($featuredImage) (not (or ($disableImageOptimization) (strings.HasSuffix $featuredImage.Name ".svg"))) }} {{ $featuredImage = $featuredImage.Resize "600x" }} {{ end }} {{ if .Params.hideFeatureImage }} {{ $featuredImage = false }} {{ end }} {{ with $featuredImage }} {{ $className := printf "background-image-%s" (md5 .RelPermalink) }}
{{ else }} {{ with $.Site.Params.images }} {{ end }} {{ end }} {{ end }} {{ if and .Draft .Site.Params.article.showDraftLabel }} {{ partial "badge.html" (i18n "article.draft" | emojify) }} {{ end }}
{{ with .Params.externalUrl }}
{{ $.Title | emojify }}
{{ else }}
{{ .Title | emojify }}
{{ end }}
{{ partial "article-meta/basic.html" . }}
{{ if .Params.showSummary | default (.Site.Params.list.showSummary | default false) }}
{{ .Summary | plainify }}
{{ end }}