需要 hexo 整个页面不渲染,只需在 md 文件头部添加

layout: false

隐藏侧栏

aside: false

隐藏指定文章

hidden: true

预先定义的参数

参数描述默认值
layout布局config.default_layout
title标题文章的文件名
date建立日期文件建立日期
updated更新日期文件更新日期
comments开启文章的评论功能true
tags标签(不适用于分页)
categories分类(不适用于分页)
permalink覆盖文章网址
excerptPage excerpt in plain text. Usethis pluginto format the text
disableNunjucksDisable rendering of Nunjucks tag{{ }}/{% %}andtag pluginswhen enabled
langSet the language to overrideauto-detectionInherited from_config.yml

hexo butterfly 图片并排显示

1
2
3
4
5
6
7
8
<style>
#article-container img {
display: inherit !important;
}
</style>
<!--将上方代码插入要并排显示图片文章任意位置 -->
style="width: 1/n%;"
<!-- 设置图片内置样式的宽度 需用百分比 % -->

pdf 文件

1
{% pdf 文件路径 %}

插入流程图

1
2
3
4
5
6
7
8
{% mermaid %}
pie
title 饼状图示例
"兔子🐇" : 42.96
"鸭梨🍐" : 50.05
"猫🐱" : 10.01
"狗🐕" : 5
{% endmermaid %}

嵌入网页

1
{% iframe 'http://www.9312.net/kltsg.txt' 100% 300px %}