Skip to content

Commit

Permalink
making things look better
Browse files Browse the repository at this point in the history
  • Loading branch information
kemo-1 committed Aug 16, 2024
1 parent dcddd63 commit bff06b6
Show file tree
Hide file tree
Showing 11 changed files with 10,602 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,8 @@ const { authors, lastUpdated } = getBlogEntryMetadata(entry)
const hasAuthors = authors.length > 0
---

<div class="metadata not-content">
{
hasAuthors ? (
<div class="authors">
{authors.map((author) => (
<Author {author} />
))}
</div>
) : null
}
<div class="dates">
<div class="metadata not-content">
<div >
<time datetime={entry.data.date.toISOString()}>
{new Intl.DateTimeFormat("ar-SA", {
"day": "numeric",
Expand All @@ -50,7 +41,17 @@ const hasAuthors = authors.length > 0
</span>
) : null
}
</div>
</div>
{
hasAuthors ? (
<div class="authors">
{authors.map((author) => (
<Author {author} />
))}
</div>
) : null
}


{
showBadges && (entry.data?.draft || entry.data.featured) && (
Expand All @@ -63,15 +64,8 @@ const hasAuthors = authors.length > 0
</div>

<style>
.metadata {
display: flex;
flex-direction: column;

}

.dates {
font-size: var(--sl-text-sm);
}

.update-date {
color: var(--sl-color-gray-3);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,10 @@ const Excerpt = await getBlogEntryExcerpt(entry)
.preview {
display: flex;
flex-direction: column;
gap: 1.5rem;

}

h2 {
margin-bottom: 1.5rem;
}

h2 a {
text-decoration: none;
}


</style>
Loading

0 comments on commit bff06b6

Please sign in to comment.