Micro Essays
Learn how to configure Micro Essays page for the Solitude theme.
Modifying Theme Configuration
You need to modify the following configuration
_config.solitude.yml
Configuring the Page
Open a terminal in the root directory of your Hexo blog and run the following command to create a new page:
This will generate a essay
folder in your blog's source
directory containing an index.md
file.
Add the page type
and data
value inside this file.
Reference (modify as needed):
index.md
Create a _data
folder in your blog's source
directory, then create a file named brevity.yml
inside it.
Configure your content here using the template below:
Micro Essay Content Template
brevity.yml
Your Micro Essays page configuration is now complete! 🎉
File Structure Reference
Field Descriptions
Required Fields
Field | Type | Description |
---|---|---|
date | Date string | Post publish date |
content | String | Essay content |
Optional Fields
Field | Type | Description | Sub-fields |
---|---|---|---|
image | Array | Image collection | Elements can be strings or objects |
aplayer | Object | Music player config | server, id |
video | Object | Video config | player or bilibili |
location | String | Location information | - |
link | URL | Related link | - |
Nested Field Details
- aplayer Object
Field | Required | Description | Example |
---|---|---|---|
server | ✓ | Music platform ID | "netease" |
id | ✓ | Song ID | "9465695843" |
- video Object
Field | Type | Description | Example |
---|---|---|---|
player | URL | Direct video link | "https://example.com/video.mp4" |
bilibili | BV ID | Bilibili video ID | "BV1AH4y1p7mF" |
- image Array
Type | Structure | Description |
---|---|---|
String | As above | Direct image URL |
Object | As above | Image with alt text |