summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Swithinbank2023-09-01 21:51:40 +0200
committerGitHub2023-09-01 21:51:40 +0200
commit1eb6262ac885a39c6c41a5b1f90b3117a1f30a91 (patch)
tree4f79674404e64c04526039c9516ed5038ba36e28
parent7b2e87c40f76604180b95f3991493a33c3892e23 (diff)
downloadIT.starlight-1eb6262ac885a39c6c41a5b1f90b3117a1f30a91.tar.gz
IT.starlight-1eb6262ac885a39c6c41a5b1f90b3117a1f30a91.tar.bz2
IT.starlight-1eb6262ac885a39c6c41a5b1f90b3117a1f30a91.zip
Fixes for Astro v3 (#629)
-rw-r--r--packages/starlight/components/LastUpdated.astro2
-rw-r--r--packages/starlight/components/SidebarSublist.astro11
2 files changed, 8 insertions, 5 deletions
diff --git a/packages/starlight/components/LastUpdated.astro b/packages/starlight/components/LastUpdated.astro
index 534da826..278057e9 100644
--- a/packages/starlight/components/LastUpdated.astro
+++ b/packages/starlight/components/LastUpdated.astro
@@ -28,7 +28,7 @@ try {
{
date && (
<p>
- {t('page.lastUpdated')}
+ {t('page.lastUpdated')}{' '}
<time datetime={date.toISOString()}>
{date.toLocaleDateString(lang, { dateStyle: 'medium' })}
</time>
diff --git a/packages/starlight/components/SidebarSublist.astro b/packages/starlight/components/SidebarSublist.astro
index fe731ff7..c1049feb 100644
--- a/packages/starlight/components/SidebarSublist.astro
+++ b/packages/starlight/components/SidebarSublist.astro
@@ -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>
) : (