Profile Configuration Instructions
About 320 wordsAbout 1 min
2025-08-17
Profile Configuration Instructions
The profile configuration is located in the profileConfig
object within the src/config.ts
file, controlling the display of personal information in the website's sidebar.
Configuration Item Details
export const profileConfig: ProfileConfig = {
avatar: "assets/images/avatar.jpg", // Avatar image path
name: "Mizuki", // Username
bio: "This is a description", // Personal bio
links: [ // Social links
{
name: "Bilibli", // Link name
icon: "fa6-brands:bilibili", // Icon
url: "https://space.bilibili.com/701864046", // Link URL
},
// ... More links
],
};
Avatar Settings
avatar
: Avatar image path, relative to the/src
directory- If the path starts with
/
, it is relative to the/public
directory - It is recommended to use a square image for best display results
- If the path starts with
Basic Information
name
: Username displayed below the avatarbio
: Personal bio, displayed below the username
Social Links
Social links are displayed below the personal bio and support various icons:
links: [
{
name: "Bilibli", // Link name
icon: "fa6-brands:bilibili", // Icon name
url: "https://space.bilibili.com/701864046", // Link URL
},
{
name: "Gitee", // Link name
icon: "mdi:git", // Icon name
url: "https://gitee.com/matsuzakayuki", // Link URL
},
{
name: "GitHub", // Link name
icon: "fa6-brands:github", // Icon name
url: "https://github.com/matsuzaka-yuki", // Link URL
},
]
Icon Selection
Mizuka uses the Iconify icon library, which supports various icon sets:
fa6-brands
: Font Awesome 6 Brand Iconsmdi
: Material Design Iconsfa6-solid
: Font Awesome 6 Solid Iconsfa6-regular
: Font Awesome 6 Regular Icons
Modifying Profile
To modify your profile, edit the profileConfig
object:
- Change Avatar: Replace the image path of the
avatar
property - Modify Username: Change the
name
property - Update Bio: Modify the
bio
property - Manage Social Links: Edit the
links
array- Add new links: Add new link objects to the array
- Delete links: Remove unwanted link objects from the array
- Modify links: Change the properties of existing link objects