aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/starlight/Footer.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/starlight/Footer.astro')
-rw-r--r--src/components/starlight/Footer.astro9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/components/starlight/Footer.astro b/src/components/starlight/Footer.astro
index 7c3871c..5b59d09 100644
--- a/src/components/starlight/Footer.astro
+++ b/src/components/starlight/Footer.astro
@@ -5,10 +5,17 @@ import Pagination from 'virtual:starlight/components/Pagination';
import config from 'virtual:starlight/user-config';
import { Icon } from '@astrojs/starlight/components';
import SocialShare from '../SocialShare.astro';
+import { shareCaption } from '../../utils/share-caption';
+
+const route = Astro.locals.starlightRoute;
+const caption = shareCaption(
+ route.entry?.slug || route.id || '',
+ route.entry?.data?.title,
+);
---
<footer class="sl-flex">
- <SocialShare />
+ <SocialShare title={caption} />
<div class="meta sl-flex">
<EditLink />