Skip to content

Commit 38468de

Browse files
committed
fix home-card background style
1 parent b7032e1 commit 38468de

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

layouts/index.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h3>Featured Projects</h3>
3838
"href" "/posts/asciiglobe/"
3939
"src" "media/ascii_globe_frame.webp"
4040
"alt" "A spinning globe rendered with text"
41-
"style" "background: transparent;"
41+
"transparent" true
4242
"title" "ASCII-Globe"
4343
"desc" "A text-based cartographic rendering engine that uses NASA satellite data"
4444
) }}
@@ -47,7 +47,6 @@ <h3>Featured Projects</h3>
4747
"href" "/posts/thessa/"
4848
"src" "media/thessa_wide_2026-01-05.webp"
4949
"alt" "A screenshot of the Thessa interface"
50-
"style" "background: #171919;"
5150
"title" "Thessa"
5251
"desc" "An AI-powered thesaurus that uses the Gemini API"
5352
) }}
@@ -56,7 +55,6 @@ <h3>Featured Projects</h3>
5655
"href" "/posts/colourlesstransformer/"
5756
"src" "media/painttransformer_walkway.webp"
5857
"alt" "A highly stylized watercolour-style image of a concrete walkway runs alongside a dense hedge of flowering bushes, all under a sleek red pergola."
59-
"style" "background: #a96764;"
6058
"title" "ColourlessTransformer"
6159
"desc" "A Streamlit interface for PaintTransformer, a neural network that approximates images using paint strokes"
6260
) }}
@@ -74,7 +72,6 @@ <h3>Featured Posts</h3>
7472
"href" "/posts/liquidglass/"
7573
"src" "media/liquid_glass_banner.webp"
7674
"alt" "Various colourful abstract Liquid Glass blobs, using glassmorphic frosted glass transparency and resembling real glass"
77-
"style" "background: #a6acb3;"
7875
"title" "Thoughts on Liquid Glass"
7976
"desc" "My thoughts on Apple's new Liquid Glass design"
8077
) }}
@@ -83,7 +80,6 @@ <h3>Featured Posts</h3>
8380
"href" "/posts/waterman/"
8481
"src" "media/waterman_poster.webp"
8582
"alt" "An unusual world map in a butterfly shape, showing the continents arranged in eight connected lobes"
86-
"style" "background: #124f7f;"
8783
"title" "The Waterman Butterfly"
8884
"desc" "An exploration of the Waterman Butterfly map projection"
8985
) }}
@@ -92,7 +88,6 @@ <h3>Featured Posts</h3>
9288
"href" "/posts/quanth/"
9389
"src" "media/plancklengthfoam.webp"
9490
"alt" "An illustrated graphic depicting quantum foam"
95-
"style" "background: #2f246c;"
9691
"title" "I have invented a new measurement system"
9792
"desc" "A proposal for a new measurement system based on Planck lengths and quantum physics"
9893
) }}

layouts/partials/home-card.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
loading="lazy"
99
width="{{ $image.Width }}"
1010
height="{{ $image.Height }}"
11-
{{ with .style }}style="{{ . }}"{{ end }}
11+
style="background: {{ if .transparent }}transparent{{ else }}{{ index ($image.Colors) 0 }}{{ end }};"
1212
>
1313
<h4>{{ .title }}</h4>
1414
<p>{{ .desc }}</p>

0 commit comments

Comments
 (0)