From f9595c791aad6cfea1072e8f03613ceff599f27a Mon Sep 17 00:00:00 2001 From: Joris Conijn Date: Fri, 15 Sep 2023 18:29:39 +0200 Subject: [PATCH] feat: show featured image in summary (when available) Display the feature image as a preview when displaying a list of pages. --- layouts/_default/summary.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 2bad5368a..9b716a265 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -1,6 +1,12 @@ +{{ $featured_image := partial "func/GetFeaturedImage.html" . }}
{{with .CurrentSection.Title }}{{ . }}{{end}} + {{ if $featured_image }} + + + + {{ end }}

{{ .Title }}