fresh-main #3

Merged
KeyArgo merged 2 commits from fresh-main into main 2025-04-23 09:25:17 +00:00
1 changed files with 8 additions and 17 deletions
Showing only changes of commit d10f87e899 - Show all commits

View File

@ -44,23 +44,14 @@ const sortedPosts = posts.sort((a, b) => {
<div class="blog-grid"> <div class="blog-grid">
{sortedPosts.map((post) => ( {sortedPosts.map((post) => (
<article class="post-card"> <article class="post-card">
{post.data.heroImage ? ( {/* Temporarily removed conditional image rendering for debugging */}
<img <img
width={720} width={720}
height={360} height={360}
src={post.data.heroImage} src="/images/placeholders/default.jpg"
alt="" alt=""
class="post-image" class="post-image"
/> />
) : (
<img
width={720}
height={360}
src="/images/placeholders/default.jpg"
alt=""
class="post-image"
/>
)}
<div class="post-content"> <div class="post-content">
<div class="post-meta"> <div class="post-meta">
<time datetime={post.data.pubDate ? new Date(post.data.pubDate).toISOString() : ''}> <time datetime={post.data.pubDate ? new Date(post.data.pubDate).toISOString() : ''}>