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 }}
@@ -58,6 +61,6 @@
decoding="async"
fetchpriority="high"
class="w-full h-full nozoom object-cover"
{{ if $style }}style="{{ $style | safeCSS }}"{{ end }}>
{{ if $style }}style="{{ $style | safeCSS }}"{{ end }} />
</div>
{{ end }}