chore: Temporarily simplify image rendering in [tag].astro for debugging

This commit is contained in:
Daniel LaForce 2025-04-23 03:20:22 -06:00
parent e155596f1b
commit d10f87e899
1 changed files with 8 additions and 17 deletions

View File

@ -44,15 +44,7 @@ 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
width={720}
height={360}
src={post.data.heroImage}
alt=""
class="post-image"
/>
) : (
<img <img
width={720} width={720}
height={360} height={360}
@ -60,7 +52,6 @@ const sortedPosts = posts.sort((a, b) => {
alt="" alt=""
class="post-image" 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() : ''}>