- {{ with .Params.externalUrl }}
-
+
+ {{- $images := $.Resources.ByType "image" }}
+ {{- $thumbnail := $images.GetMatch "*thumb*" }}
+ {{- $feature := $images.GetMatch "*feature*" | default $thumbnail }}
+ {{- with $feature }}
+
+ {{- end }}
+
- {{ 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 }}
+ {{ 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" . }}
- {{ end }}
+ {{ if .Params.showSummary | default (.Site.Params.list.showSummary | default false) }}
+
+ {{ .Summary | emojify }}
+
+ {{ end }}
+
diff --git a/layouts/partials/article-meta.html b/layouts/partials/article-meta.html
index 190811ec..be6ccf20 100644
--- a/layouts/partials/article-meta.html
+++ b/layouts/partials/article-meta.html
@@ -32,7 +32,6 @@
{{ $meta.Add "partials" (slice (partial "meta/edit.html" .)) }}
{{ end }}
-
{{/* Output partials */}}
{{ with ($meta.Get "partials") }}