|
1 | 1 | --- |
2 | | -title: Konfigurations­referenz |
| 2 | +title: Konfigurationsreferenz |
3 | 3 | description: Ein Überblick über alle von Starlight unterstützten Konfigurations­optionen. |
4 | 4 | sidebar: |
5 | 5 | label: Konfiguration |
@@ -343,28 +343,21 @@ Das standard Locale wird verwendet, um Ersatzinhalte bereitzustellen, wenn Über |
343 | 343 |
|
344 | 344 | ### `social` |
345 | 345 |
|
346 | | -import SocialLinksType from '~/components/social-links-type.astro'; |
| 346 | +**Typ:** <code>{`Array<{ label: string; icon: `}[StarlightIcon](/de/reference/icons/){`; href: string }>`}</code> |
347 | 347 |
|
348 | | -**Typ:** <SocialLinksType /> |
349 | | - |
350 | | -Optionale Angaben zu den Social-Media-Konten für diese Website. Wenn du eines dieser Konten hinzufügst, werden sie als Symbol-Links in der Kopfzeile der Website angezeigt. |
| 348 | +Optionale Angaben zu den Social-Media-Konten für diese Website. |
| 349 | +Jeder Eintrag wird als Symbol-Link in der Kopfzeile der Seite angezeigt. |
351 | 350 |
|
352 | 351 | ```js |
353 | 352 | starlight({ |
354 | | - social: { |
355 | | - codeberg: 'https://codeberg.org/knut/examples', |
356 | | - discord: 'https://astro.build/chat', |
357 | | - github: 'https://github.com/withastro/starlight', |
358 | | - gitlab: 'https://gitlab.com/delucis', |
359 | | - linkedin: 'https://www.linkedin.com/company/astroinc', |
360 | | - mastodon: 'https://m.webtoo.ls/@astro', |
361 | | - threads: 'https://www.threads.net/@nmoodev', |
362 | | - twitch: 'https://www.twitch.tv/bholmesdev', |
363 | | - twitter: 'https://twitter.com/astrodotbuild', |
364 | | - 'x.com': 'https://x.com/astrodotbuild', |
365 | | - youtube: 'https://youtube.com/@astrodotbuild', |
366 | | - }, |
367 | | -}); |
| 353 | + social: [ |
| 354 | + { icon: 'codeberg', label: 'Codeberg', href: 'https://codeberg.org/knut' }, |
| 355 | + { icon: 'discord', label: 'Discord', href: 'https://astro.build/chat' }, |
| 356 | + { icon: 'github', label: 'GitHub', href: 'https://github.com/withastro' }, |
| 357 | + { icon: 'gitlab', label: 'GitLab', href: 'https://gitlab.com/delucis' }, |
| 358 | + { icon: 'mastodon', label: 'Mastodon', href: 'https://m.webtoo.ls/@astro' }, |
| 359 | + ], |
| 360 | +}), |
368 | 361 | ``` |
369 | 362 |
|
370 | 363 | ### `customCss` |
|
0 commit comments