Merge pull request 'fresh-main' (#3) from fresh-main into main
Reviewed-on: https://gitea.argobox.com/KeyArgo/laforceit-blog/pulls/3
This commit is contained in:
commit
6ce069a3eb
|
@ -29,6 +29,7 @@ const sortedPosts = posts.sort((a, b) => {
|
|||
const dateB = b.data.pubDate ? new Date(b.data.pubDate) : new Date(0);
|
||||
return dateB.getTime() - dateA.getTime();
|
||||
});
|
||||
---
|
||||
|
||||
<BaseLayout title={`Posts tagged with "${tag}" | LaForce IT Blog`} description={`Articles and guides related to ${tag}`}>
|
||||
<main class="container">
|
||||
|
@ -43,15 +44,7 @@ const sortedPosts = posts.sort((a, b) => {
|
|||
<div class="blog-grid">
|
||||
{sortedPosts.map((post) => (
|
||||
<article class="post-card">
|
||||
{post.data.heroImage ? (
|
||||
<img
|
||||
width={720}
|
||||
height={360}
|
||||
src={post.data.heroImage}
|
||||
alt=""
|
||||
class="post-image"
|
||||
/>
|
||||
) : (
|
||||
{/* Temporarily removed conditional image rendering for debugging */}
|
||||
<img
|
||||
width={720}
|
||||
height={360}
|
||||
|
@ -59,7 +52,6 @@ const sortedPosts = posts.sort((a, b) => {
|
|||
alt=""
|
||||
class="post-image"
|
||||
/>
|
||||
)}
|
||||
<div class="post-content">
|
||||
<div class="post-meta">
|
||||
<time datetime={post.data.pubDate ? new Date(post.data.pubDate).toISOString() : ''}>
|
||||
|
|
Loading…
Reference in New Issue