}
}
+/* Theme-aware picture element for default thumbnails */
+html.theme-light picture img[src="/images/default_thumbnail_dark.png"] {
+ content: url('/images/default_thumbnail_light.png');
+}
+
@layer base {
html {
@apply overflow-x-hidden;
}
}
+/* Theme-aware picture element for default thumbnails */
+
+html.theme-light picture img[src="/images/default_thumbnail_dark.png"] {
+ content: url('/images/default_thumbnail_light.png');
+}
+
/* Prose overrides for light theme */
html.theme-light .prose,
{{ $excerpt := .Description | default .Summary }}
{{ $imageURL := "" }}
+{{ $useDefaultThumbnail := false }}
{{ if .Params.image }}
{{ $resource := .Resources.GetMatch .Params.image }}
{{ if $resource }}
{{ else }}
{{ $imageURL = .Params.image }}
{{ end }}
+{{ else }}
+ {{ $useDefaultThumbnail = true }}
{{ end }}
<article class="card group bg-bg">
<!-- Thumbnail -->
- {{ if $imageURL }}
+ {{ if or $imageURL $useDefaultThumbnail }}
<a href="{{ .RelPermalink }}" class="block overflow-hidden bg-surface/50 relative" tabindex="-1">
+ {{ if $useDefaultThumbnail }}
+ <picture>
+ <source srcset="/images/default_thumbnail_light.png" media="(prefers-color-scheme: light)" />
+ <img
+ src="/images/default_thumbnail_dark.png"
+ alt="{{ .Title }}"
+ class="card-image group-hover:scale-105 transition-transform duration-200"
+ loading="lazy"
+ />
+ </picture>
+ {{ else }}
<img
src="{{ $imageURL }}"
alt="{{ .Title }}"
class="card-image group-hover:scale-105 transition-transform duration-200"
loading="lazy"
/>
+ {{ end }}
<!-- Type badge pill overlay -->
{{ if $typeData }}
<div