diff --git a/layouts/partials/article-link/_shortcode.html b/layouts/partials/article-link/_shortcode.html index 52b25a92..beb592b9 100644 --- a/layouts/partials/article-link/_shortcode.html +++ b/layouts/partials/article-link/_shortcode.html @@ -47,6 +47,9 @@ {{ end }} {{ else }} {{ $featured = $p.Resources.Get . }} + {{ if not $featured }} + {{ $featured = resources.Get . }} + {{ end }} {{ end }} {{ end }} @@ -89,7 +92,7 @@ role="presentation" loading="lazy" decoding="async" - class="not-prose absolute inset-0 w-full h-full object-cover"> + class="not-prose absolute inset-0 w-full h-full object-cover" /> {{ end }}
diff --git a/layouts/partials/article-link/card-related.html b/layouts/partials/article-link/card-related.html index e06d604a..8d0ff914 100644 --- a/layouts/partials/article-link/card-related.html +++ b/layouts/partials/article-link/card-related.html @@ -21,6 +21,9 @@ {{ end }} {{ else }} {{ $featured = $p.Resources.Get . }} + {{ if not $featured }} + {{ $featured = resources.Get . }} + {{ end }} {{ end }} {{ end }} @@ -57,14 +60,16 @@
{{ with $featuredURL }} -