Front-matter指南(基于Hexo的butterfly主题)

为了以后写博客方便查找,留下的记录

Front-matter 是档案最上方以 — 分隔的区域,用于指定个别档案的变数。

概要

参数 介绍 案例
title 页面标题 title: 解决使用Typora,Hexo博客的图片无法显示的坑
tags 标签 tags:
- Hexo
- Typora
- 教程
cover 封面 cover: http://img.uecook.com/images/a1/25/c72575484180af87145e31302b035ef4.jpg
keywords 关键字 keywords: “Hexo,Typora,图片,图片路径,插件”
aplayer 音乐 aplayer: ture
categories 分类 categories: “Hexo”

注意!是英文下的冒号!

title

tags

cover

Keywords

这个应该是和搜索引擎有关的

aplayer

直接在内容中加上这些

有关

的选项列表如下:

选项 默认值 描述
id 必须值 歌曲 id / 播放列表 id / 相册 id / 搜索关键字
server 必须值 音乐平台: netease, tencent, kugou, xiami, baidu
type 必须值 song, playlist, album, search, artist
fixed false 开启固定模式
mini false 开启迷你模式
loop all 列表循环模式:all, one,none
order list 列表播放模式: list, random
volume 0.7 播放器音量
lrctype 0 歌词格式类型
listfolded false 指定音乐播放列表是否折叠
storagename metingjs LocalStorage 中存储播放器设定的键名
autoplay true 自动播放,移动端浏览器暂时不支持此功能
mutex true 该选项开启时,如果同页面有其他 aplayer 播放,该播放器会暂停
listmaxheight 340px 播放列表的最大长度
preload auto 音乐文件预载入模式,可选项: none, metadata, auto
theme #ad7a86 播放器风格色彩设置

categories