Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions src/components/blog/BlogContent.astro
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ const { Content } = await render(blog)
{blog.data.title}
</h1>
<article
class="my-10 w-full max-w-padded-container bg-white p-4 md:rounded-2xl"
class="my-10 w-full max-w-padded-container bg-white p-8 md:rounded-2xl"
>
<div class="mb-1 p-1 text-lg">
<div class="mb-1 pb-1 text-lg">
<a
class="flex items-center gap-2 hover:underline"
href={`/blog/authors/${author.id}/`}
><AuthorIcon {...author.data} size={28} />{author.data.name}</a
>
</div>
<TagSmallList blogCategory={blog.data.category} tags={tags} />
<div class="flex gap-3 p-2 text-sm text-gray-700">
<div class="flex gap-3 py-2 text-sm text-gray-700">
{
blogMeta.updateDate && (
<div>
Expand Down Expand Up @@ -80,15 +80,12 @@ const { Content } = await render(blog)
@apply content-none;
}

.prose > *:where(:not(pre, iframe, img, svg, table)) {
@apply mx-4;
}
.prose > *:where(h1, h2) {
@apply border-b-2;
}

.prose > table {
@apply block w-full overflow-x-auto whitespace-nowrap px-2;
@apply block w-full overflow-x-auto whitespace-nowrap;
}
}
</style>
Loading