I'm a bit confused. In development, this works as expected. However, when building and running the preview, it does not.
{
pathname === "/blog" && (
<>
<p set:html={post.data.description} />
<a href={"/blog/" + post.slug}>Read More →</a>
</>
)
}
BTW, pathname = Astro.url.pathname
When running console.log(pathname), I get a matching /blog, so why is this failing on the preview?