Music Gallery

Learn how to configure Music Gallery 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:

hexo new page music

Creating the Data File

This will generate a music folder in your blog's source directory containing an index.md file. Add the page type value inside this file.

Reference (modify as needed):

index.md
---
title:  Music Gallery
date: 2025-07-13 23:24:50
comment: false
type: music
---

Modifying Theme Configuration

You need to modify the following configurations:

Required if enabling the Music Gallery. Replace with your own playlist ID. Customize other options as needed.

_config.solitude.yml
# Approximately at line 883
# --------------------------- start ---------------------------
# Music Page
# 音乐馆
music:
  enable: true
  # 歌单 ID / 单曲 ID
  id: 5144842535
  # 服务商:netease / qq / xiami / kugou / baidu
  server: netease
  # 类型:playlist / song
  type: playlist
  # 默认音量
  volume: 0.8
  # 是否自动播放
  mutex: true
  # 播放方式:list / random
  order: list
# --------------------------- end ---------------------------

Meting API Configuration

Normally no need to change. Replace with your own API if this becomes unavailable.

_config.solitude.yml
# Approximately at line 584
# --------------------------- start ---------------------------
# Meting API
# This part of the content uses metingjs,
# can only use NetEase Cloud Music, QQ Music and other music platforms supported by the mainland China region,
# the subsequent consideration of the use of JSON files to store music information and customize the implementation of the third-party API does not depend on the page.
# Music Page
meting_api: "https://meting.qjqq.cn/?server=:server&type=:type&id=:id&auth=:auth&r=:r" # Custom API
# --------------------------- end ---------------------------

Music Capsule Configuration

Optional bottom-left music capsule. Customize other options as needed.

_config.solitude.yml
# Approximately at line 593
# --------------------------- start ---------------------------
# Capsule music
# 音乐胶囊
capsule:
  enable: true
  # 歌单 ID / 单曲 ID
  id: 5144842535
  # 服务商:netease / qq / xiami / kugou / baidu
  server: netease
  # 类型:playlist / song
  type: playlist
  volume: 0.8
# --------------------------- end ---------------------------