Skip to content

Commit

Permalink
Fixes for Astro v3 (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis authored Sep 1, 2023
1 parent 7b2e87c commit 1eb6262
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/starlight/components/LastUpdated.astro
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ try {
{
date && (
<p>
{t('page.lastUpdated')}
{t('page.lastUpdated')}{' '}
<time datetime={date.toISOString()}>
{date.toLocaleDateString(lang, { dateStyle: 'medium' })}
</time>
Expand Down
11 changes: 7 additions & 4 deletions packages/starlight/components/SidebarSublist.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@ interface Props {
>
<span>{entry.label}</span>
{entry.badge && (
<Badge
text={entry.badge.text}
variant={entry.isCurrent ? 'outline' : entry.badge.variant}
/>
<>
{' '}
<Badge
text={entry.badge.text}
variant={entry.isCurrent ? 'outline' : entry.badge.variant}
/>
</>
)}
</a>
) : (
Expand Down

0 comments on commit 1eb6262

Please sign in to comment.