Profile Card
The profile card is a sidebar component on the homepage that introduces you to your visitors. It displays your avatar, name, a personal motto, and links to your social media profiles — all styled with the theme's signature claymorphism design.
Configuration
The profile card is configured under the profile key in _config.modernduang.yml:
Social Link Object
Each item in the social array has three fields:
Display Name — profile.author
The profile card's display name is not set in the profile config directly. Instead, it is automatically pulled from Hexo's main configuration file (_config.yml):
If author is not set in _config.yml, the profile card will fall back to displaying the site title.
Social Icons
ModernDuang ships with 11 built-in social icons that you can reference by name:
Using a built-in icon is as simple as setting icon: github (lowercase, no spaces). The theme automatically renders the correct SVG and applies platform-appropriate hover colors.
Custom SVG Icons
If you need an icon for a platform not in the built-in list, you can supply an inline SVG string:
Tip: Make sure your custom SVG has
viewBox="0 0 24 24"andfill="currentColor"for consistent sizing and theming with the built-in icons.
Visual Design
The profile card features the claymorphism aesthetic:
- The avatar is displayed in a circular frame with a soft inner shadow
- The name uses the site's heading font at a prominent size
- The motto appears below the name in a lighter weight and subtler color
- Social icons are arranged in a row and each icon gets a colored background on hover (e.g., GitHub turns dark gray, Bilibili turns pink, Email turns blue)
Clickable /about Link
All core elements of the profile card — the avatar, name, and motto — are clickable links that point to /about. Visitors can click anywhere on the card (avatar, name, or motto text) to navigate to your About page for a more detailed introduction.
This provides intuitive navigation — from the homepage profile card, visitors can reach the About page with a single click, without needing to use the navigation bar.
Where the Profile Card Appears
The profile card is displayed only on the homepage, in the sidebar area alongside the main content. On mobile screens, it moves to the top of the content area.
Complete Example
Related Pages
- Social Icons — Complete reference for all 11 built-in icons
- Navigation & Menus — Top nav bar configuration
- Footer & ICP Beian — Social icons in the footer area
