Friendship Links
Learn how to configure Friendship Links page for the Solitude theme.
Configuring the Page
Open a terminal in the root directory of your Hexo blog and run the following command to create a new page:
Creating the Data File
This will generate a links folder in your blog's source directory containing an index.md file.
Next, add the page type and data values inside this file.
Reference (modify as needed):
index.md
Create a _data folder in the source directory of your blog, then create a file named links.yml inside it.
Configure your content here using the template below:
Friendship Links Content Template
links.yml
Your Friendship Links page configuration is now complete! 🎉
File Structure Reference
Field Descriptions
1. Global Configuration
| Field | Description |
|---|---|
| banner_suffix | Uniform suffix for all banner images |
2. Category Configuration
| Field | Description | Allowed Values |
|---|---|---|
| class_name | Category title (displayed as H2 heading) | - |
| descr | Category description text | - |
| type | Friendship link display type | card/item/discn |
| suffix | Avatar suffix specific to this category | - |
| topimg_suffix | Top image suffix specific to this category | - |
3. Friendship Link Configuration
| Field | Required | Description | Example |
|---|---|---|---|
| name | ✓ | Website name | - |
| link | ✓ | Website URL | - |
| avatar | ✓* | Avatar URL (required for card/item types) | https://example.com/avt.png |
| descr | Short description | - | |
| topimg | Top banner image URL (only for card type) | - | |
| tag | Badge label text (e.g., VIP/Recommended) | VIP/Recommended | |
| color | Label color (vip/speed or HEX code)) | #ff0000/vip |