fix: global resources fallback incorrectly removed in #2978

This commit is contained in:
ZhenShuo Leo committed 2026-07-05 14:37:14 +08:00
1 parent 1f14448333
commit c164484993
9 files changed
+48 -14

No files matched your search

+4 -1
View File
@@ -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 }} />
<div
class="absolute inset-0 bg-gradient-to-t from-neutral dark:from-neutral-800 to-transparent mix-blend-normal"></div>
<div