Commit b6e9b75

HPCesia <me@hpcesia.com>
2025-02-16 14:44:52
fix: rename profile.links to social links
1 parent f05f3c9
Changed files (2)
src
components
types
src/components/aside/ProfileCard.astro
@@ -18,7 +18,7 @@ import { Icon } from 'astro-icon/components';
     <div>{profileConfig.bio}</div>
     <div class="flex flex-row flex-wrap items-center justify-center gap-2">
       {
-        profileConfig.links.map((link) => (
+        profileConfig.socialLinks.map((link) => (
           <Button href={link.url} title={link.name} class="btn-circle btn-ghost text-2xl">
             <Icon name={link.icon} />
           </Button>
src/types/config.ts
@@ -199,11 +199,11 @@ export type ProfileConfig = {
    */
   bio?: string;
   /**
-   * The links of the profile.
+   * The social links of the profile.
    *
-   * 链接。
+   * 社交链接。
    */
-  links: {
+  socialLinks: {
     /**
      * The title of the link.
      *