Space out and full-width the post listings

Three things were off in the front-page and blog listings.

The floated thumbnail was never cleared, so the next item's heading
wrapped around it instead of starting below -- front-page.php emits
<br /><div class="clear"> </div> after each post, which is now
reproduced.

The post wrapper was missing the classes WordPress adds via
post_class(); .post/.hentry carry the margin-bottom: 20px that separates
items.

And the listings sat in the theme's #content, which is float: left and
650px because it expects a 230px sidebar alongside. There is no sidebar
here -- the search and widget boxes were WordPress-specific chrome and
were dropped -- so that just left dead space to the right. BaseLayout
already wraps the slot in the full-width #content-full, so the inner
wrapper is removed and the sections span the full 930px.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-15 19:57:51 -04:00
co-authored by Claude Opus 5
parent d379c53a28
commit 67ddd30430
2 changed files with 29 additions and 25 deletions
+5 -3
View File
@@ -7,15 +7,17 @@ const posts = (await getCollection('posts')).sort((a, b) => b.data.date.getTime(
--- ---
<BaseLayout title="Blog | VICIdial.com"> <BaseLayout title="Blog | VICIdial.com">
<div id="content">
{posts.map((post) => ( {posts.map((post) => (
<div id={`post-${post.id}`}> <Fragment key={post.id}>
<div class="post hentry" id={`post-${post.id}`}>
<a href={`/blog/${post.data.slug}`}> <a href={`/blog/${post.data.slug}`}>
<h2 class="post-title">{post.data.title}</h2> <h2 class="post-title">{post.data.title}</h2>
{post.data.featuredImage && <Image class="attachment-thumbnail" src={post.data.featuredImage} alt={post.data.title} width={210} height={150} fit="cover" position="left top" />} {post.data.featuredImage && <Image class="attachment-thumbnail" src={post.data.featuredImage} alt={post.data.title} width={210} height={150} fit="cover" position="left top" />}
</a> </a>
<p>{post.data.excerpt}<a href={`/blog/${post.data.slug}`} class="read-more">Read the Rest...</a></p> <p>{post.data.excerpt}<a href={`/blog/${post.data.slug}`} class="read-more">Read the Rest...</a></p>
</div> </div>
<br />
<div class="clear"> </div>
</Fragment>
))} ))}
</div>
</BaseLayout> </BaseLayout>
+5 -3
View File
@@ -15,9 +15,9 @@ const posts = (await getCollection('posts')).sort((a, b) => b.data.date.getTime(
<FeaturedBox /> <FeaturedBox />
<div id="content">
{posts.map((post) => ( {posts.map((post) => (
<div id={`post-${post.id}`}> <Fragment key={post.id}>
<div class="post hentry" id={`post-${post.id}`}>
<a href={`/blog/${post.data.slug}`}> <a href={`/blog/${post.data.slug}`}>
<h2 class="post-title">{post.data.title}</h2> <h2 class="post-title">{post.data.title}</h2>
{/* 210x150 cropped from left-top, matching the theme's set_post_thumbnail_size(). {/* 210x150 cropped from left-top, matching the theme's set_post_thumbnail_size().
@@ -27,8 +27,10 @@ const posts = (await getCollection('posts')).sort((a, b) => b.data.date.getTime(
</a> </a>
<p>{post.data.excerpt}<a href={`/blog/${post.data.slug}`} class="read-more">Read the Rest...</a></p> <p>{post.data.excerpt}<a href={`/blog/${post.data.slug}`} class="read-more">Read the Rest...</a></p>
</div> </div>
<br />
<div class="clear"> </div>
</Fragment>
))} ))}
</div>
<div class="content-ver-sep"> </div> <div class="content-ver-sep"> </div>
<div id="customers-comment"> <div id="customers-comment">