Skip to content

Commit b9cd64f

Browse files
committed
feat(premium): update Premium credit section and sidebar TOC integration
1 parent 1810fa8 commit b9cd64f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

astro.config.mjs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,17 @@ export default defineConfig({
3030
plugins: [
3131
lunaria(),
3232
starlightCoolerCredit({
33+
customImage: './public/img/premium/premium_logo.png',
34+
customImageAlt: 'Mr. Robøt Premium Logo',
3335
credit: {
3436
title: {
35-
en: "Built with Astro",
36-
de: "Erstellt mit Astro",
37+
fr: "Obtenez Mr. Robøt Premium",
38+
en: "Get Mr. Robøt Premium",
3739
},
38-
href: "https://docs.astro.build/",
40+
href: "https://mrrobot.app/premium",
3941
description: {
40-
en: "Want to build your own static website?",
41-
de: "Willst du deine eigene statische Website erstellen?",
42+
fr: "Débloquez des fonctionnalités exclusives.",
43+
en: "Unlock exclusive features.",
4244
},
4345
},
4446
}),

src/components/PageSidebar.astro

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
---
2-
import type {Props} from '../props';
3-
42
import MobileTableOfContents from 'virtual:starlight/components/MobileTableOfContents';
53
import TableOfContents from 'virtual:starlight/components/TableOfContents';
64
---
75

86
{
9-
Astro.props.toc && (
7+
Astro.locals.starlightRoute.toc && (
108
<>
119
<div class="lg:sl-hidden">
12-
<MobileTableOfContents {...Astro.props}/>
10+
<MobileTableOfContents />
1311
</div>
1412
<div class="right-sidebar-panel sl-hidden lg:sl-block">
1513
<div class="sl-container">
16-
<TableOfContents {...Astro.props}/>
14+
<TableOfContents />
1715
</div>
1816
</div>
1917
</>
20-
)
21-
}
18+
)
19+
}
2220

2321
<style>
2422
.right-sidebar-panel {

0 commit comments

Comments
 (0)