Compare commits
No commits in common. "6ce069a3ebde61c99504d498fd2f03c4cde356cb" and "f84e993d4714967d0316d4a9a90bf22ea3459068" have entirely different histories.
6ce069a3eb
...
f84e993d47
|
@ -29,7 +29,6 @@ const sortedPosts = posts.sort((a, b) => {
|
||||||
const dateB = b.data.pubDate ? new Date(b.data.pubDate) : new Date(0);
|
const dateB = b.data.pubDate ? new Date(b.data.pubDate) : new Date(0);
|
||||||
return dateB.getTime() - dateA.getTime();
|
return dateB.getTime() - dateA.getTime();
|
||||||
});
|
});
|
||||||
---
|
|
||||||
|
|
||||||
<BaseLayout title={`Posts tagged with "${tag}" | LaForce IT Blog`} description={`Articles and guides related to ${tag}`}>
|
<BaseLayout title={`Posts tagged with "${tag}" | LaForce IT Blog`} description={`Articles and guides related to ${tag}`}>
|
||||||
<main class="container">
|
<main class="container">
|
||||||
|
@ -44,7 +43,15 @@ 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">
|
||||||
{/* Temporarily removed conditional image rendering for debugging */}
|
{post.data.heroImage ? (
|
||||||
|
<img
|
||||||
|
width={720}
|
||||||
|
height={360}
|
||||||
|
src={post.data.heroImage}
|
||||||
|
alt=""
|
||||||
|
class="post-image"
|
||||||
|
/>
|
||||||
|
) : (
|
||||||
<img
|
<img
|
||||||
width={720}
|
width={720}
|
||||||
height={360}
|
height={360}
|
||||||
|
@ -52,6 +59,7 @@ 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() : ''}>
|
||||||
|
|
Loading…
Reference in New Issue