Add per-post banners (16:9 hero images) + banner-gen script; add banner to all posts
Deploy / build (push) Successful in 37s

This commit is contained in:
hoelee committed 2026-09-09 06:33:13 +08:00
1 parent ca650f69c0
commit 3a00a2d517
33 files changed
+1245

No files matched your search

+5
View File
@@ -62,6 +62,11 @@ const switchHref = translation ? `/posts/${translation}/` : undefined;
}}
>
<article>
{post.data.banner && (
<figure class="article-banner">
<img src={post.data.banner} alt="" loading="lazy" width="1600" height="900" />
</figure>
)}
<header class="article-head">
<h1>{post.data.title}</h1>
<div class="meta">