+
+ class="not-prose absolute inset-0 w-full h-full object-cover" />
{{ end }}
{{ if and .Draft .Site.Params.article.showDraftLabel }}
diff --git a/layouts/partials/article-link/card.html b/layouts/partials/article-link/card.html
index 97f9f781..2f6a7fcf 100644
--- a/layouts/partials/article-link/card.html
+++ b/layouts/partials/article-link/card.html
@@ -24,6 +24,9 @@
{{ end }}
{{ else }}
{{ $featured = $p.Resources.Get . }}
+ {{ if not $featured }}
+ {{ $featured = resources.Get . }}
+ {{ end }}
{{ end }}
{{ end }}
@@ -61,13 +64,15 @@
{{ with $featuredURL }}
-
+
+ class="not-prose absolute inset-0 w-full h-full object-cover" />
{{ end }}
{{ if and .Draft .Site.Params.article.showDraftLabel }}
diff --git a/layouts/partials/article-link/simple.html b/layouts/partials/article-link/simple.html
index d14ecd0c..303b64d8 100644
--- a/layouts/partials/article-link/simple.html
+++ b/layouts/partials/article-link/simple.html
@@ -40,6 +40,9 @@
{{ end }}
{{ else }}
{{ $featured = $p.Resources.Get . }}
+ {{ if not $featured }}
+ {{ $featured = resources.Get . }}
+ {{ end }}
{{ end }}
{{ end }}
@@ -82,7 +85,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-meta/basic.html b/layouts/partials/article-meta/basic.html
index d83c703d..a5dc249a 100644
--- a/layouts/partials/article-meta/basic.html
+++ b/layouts/partials/article-meta/basic.html
@@ -100,20 +100,26 @@
{{ range $taxonomy, $terms := .Site.Taxonomies }}
{{ if (gt (len ($context.GetTerms $taxonomy)) 0) }}
{{ range $context.GetTerms $taxonomy }}
- {{ if .Params.showCategories | default (.Site.Params.article.showCategories | default true) }}
- {{ if (eq $taxonomy "categories") }}
+ {{ if (or (eq $taxonomy "authors") (eq $taxonomy "series"))}}
+ {{/* Ignore authors and series, since they are handled in other places */}}
+ {{ continue }}
+ {{ else if (eq $taxonomy "categories") }}
+ {{ if .Params.showCategories | default (.Site.Params.article.showCategories | default true) }}
{{ $useSecondaryColor := .Params.showCategoriesInSecondaryColor | default (.Site.Params.article.showCategoriesInSecondaryColor | default false) }}
{{ partial "badge.html" (dict "linkTitle" .LinkTitle "useSecondaryColor" $useSecondaryColor) }}
{{ end }}
- {{ end }}
- {{ if .Params.showTags | default (.Site.Params.article.showTags | default true) }}
- {{ if (eq $taxonomy "tags") }}
+ {{ else if (eq $taxonomy "tags") }}
+ {{ if .Params.showTags | default (.Site.Params.article.showTags | default true) }}
{{ partial "badge.html" .LinkTitle }}
{{ end }}
+ {{ else }}
+
+ {{ partial "badge.html" .LinkTitle }}
+
{{ end }}
{{ end }}
{{ end }}
diff --git a/layouts/partials/hero/background.html b/layouts/partials/hero/background.html
index 362d7fff..83b5c002 100644
--- a/layouts/partials/hero/background.html
+++ b/layouts/partials/hero/background.html
@@ -12,6 +12,9 @@
{{ end }}
{{ else }}
{{ $featured = page.Resources.Get . }}
+ {{ if not $featured }}
+ {{ $featured = resources.Get . }}
+ {{ end }}
{{ end }}
{{ end }}
@@ -78,7 +81,7 @@
decoding="async"
fetchpriority="high"
class="absolute inset-0 w-full h-full object-cover"
- {{ if $style }}style="{{ $style | safeCSS }}"{{ end }}>
+ {{ if $style }}style="{{ $style | safeCSS }}"{{ end }} />
{{ $caption | markdownify }}
diff --git a/layouts/partials/hero/thumbAndBackground.html b/layouts/partials/hero/thumbAndBackground.html
index 5ede6322..e342ebfd 100644
--- a/layouts/partials/hero/thumbAndBackground.html
+++ b/layouts/partials/hero/thumbAndBackground.html
@@ -46,6 +46,9 @@
{{ end }}
{{ else }}
{{ $featured = page.Resources.Get . }}
+ {{ if not $featured }}
+ {{ $featured = resources.Get . }}
+ {{ end }}
{{ end }}
{{ end }}
@@ -94,7 +97,7 @@
decoding="async"
fetchpriority="high"
class="w-full h-full nozoom object-cover"
- {{ with $.Params.imagePositionFeature }}style="object-position: {{ . }};"{{ end }}>
+ {{ with $.Params.imagePositionFeature }}style="object-position: {{ . }};"{{ end }} />
{{ end }}
@@ -114,7 +117,7 @@
decoding="async"
fetchpriority="high"
class="absolute inset-0 h-full w-full object-cover"
- {{ if $style }}style="{{ $style | safeCSS }}"{{ end }}>
+ {{ if $style }}style="{{ $style | safeCSS }}"{{ end }} />
{{ end }}
diff --git a/layouts/partials/term-link/card.html b/layouts/partials/term-link/card.html
index 63c7af83..5a67ed31 100644
--- a/layouts/partials/term-link/card.html
+++ b/layouts/partials/term-link/card.html
@@ -5,11 +5,15 @@
{{ $thumbnailAspectRatio := site.Params.thumbnailAspectRatio | default "1.5" }}
{{ $thumbnailAspectRatio = replaceRE "[^0-9.]" "" $thumbnailAspectRatio }}
{{ if eq $thumbnailAspectRatio "" }}{{ $thumbnailAspectRatio = "1.5" }}{{ end }}
+{{ $p := .Page }}
{{ with .Page.Params.featureimage }}
{{ if or (strings.HasPrefix . "http:") (strings.HasPrefix . "https:") }}
{{ $featured = resources.GetRemote . }}
{{ else }}
- {{ $featured = page.Resources.Get . }}
+ {{ $featured = $p.Resources.Get . }}
+ {{ if not $featured }}
+ {{ $featured = resources.Get . }}
+ {{ end }}
{{ end }}
{{ end }}
@@ -31,14 +35,16 @@
+ {{ if $style }}style="{{ $style | safeCSS }}"{{ end }} />
{{ end }}
diff --git a/layouts/partials/hero/big.html b/layouts/partials/hero/big.html
index 43dc265c..7e0d85d4 100644
--- a/layouts/partials/hero/big.html
+++ b/layouts/partials/hero/big.html
@@ -12,6 +12,9 @@
{{ end }}
{{ else }}
{{ $featured = page.Resources.Get . }}
+ {{ if not $featured }}
+ {{ $featured = resources.Get . }}
+ {{ end }}
{{ end }}
{{ end }}
@@ -66,7 +69,7 @@
decoding="async"
fetchpriority="high"
class="w-full rounded-lg single_hero_round nozoom"
- {{ if $style }}style="{{ $style | safeCSS }}"{{ end }}>
+ {{ if $style }}style="{{ $style | safeCSS }}"{{ end }} />
{{ if $caption }}
{{ with $featuredURL }}
-
+
+ class="not-prose absolute inset-0 w-full h-full object-cover" />
{{ end }}
{{ if site.Params.taxonomy.showTermCount | default true }}