Testing features of HEXO & JS in custom theme
Inspired by: https://yuang01.github.io/
The purpose of this post is to see if everything documented actually works…
Gallery 图片
Requires fancybox.js true
一行一个图片
一行多个图片(不换行)
多行多个图片(每行2~8个图片)
多行多个图片(每行2~8个图片)
组合使用
Gallery Group 图片示例
Buttons
融入段落中按钮
不设置任何参数的 按钮 适合融入段落中。 不设置任何参数的 按钮 适合融入段落中。 不设置任何参数的 按钮 适合融入段落中。 不设置任何参数的 按钮 适合融入段落中。 不设置任何参数的 按钮 适合融入段落中。 ### 空心和实心按钮 示例博客 示例博客 ### 大点的按钮和样式 开始使用 ### 环形按钮 开始使用 ### warning等颜色按钮 开始使用 开始使用 开始使用 开始使用 开始使用 ### warning等颜色空心按钮 开始使用 开始使用 开始使用 开始使用 开始使用 ### warning等颜色空心环形居中按钮 开始使用 开始使用 ### 带有头像和名称的按钮
一行三个
一行四个
一行五个
Rounded buttons 环形图标按钮
环形图标居中按钮
环形图标填充按钮
Card Views 圆形图标按钮
Checkbox 进度条示例
纯文本测试
支持简单的 markdown 语法
支持自定义颜色
绿色 + 默认选中
黄色 + 默认选中
青色 + 默认选中
蓝色 + 默认选中
增加
减少
叉
Radio
纯文本测试
支持简单的 markdown 语法
支持自定义颜色
绿色
黄色
青色
蓝色
warning色
success色
danger色
info色
Progress Bars 进度条
Accordion Box
查看图片测试
Cyan 青色-默认打开
查看默认打开的折叠框
这是一个默认打开的折叠框。
Green 查看代码
查看代码测试
这里写代码高亮部分
Yellow 查看列表
查看列表测试
- haha
- hehe
Red 查看嵌套
查看嵌套测试
查看嵌套测试2
查看嵌套测试3
hahaha
Tab 事例
。。。
!!!
Inline Image 标签
段落中插入图片
这是 一段话。
这又是 一段话。
这又是 一段话。
自定义图片并添加描述

指定宽度


设置占位背景色

Link 标签
超链接标签
### 上述事例代码Post Link
Include links to other posts.
1 |
|
//TODO: fix bug on post_path
& post_link
where it fails to find the post…
You can ignore permalink and folder information, like languages and dates, when using this tag.
For instance: {% post_link how-to-bake-a-cake %}
.
This will work as long as the filename of the post is how-to-bake-a-cake.md
, even if the post is located at source/posts/2015-02-my-family-holiday
and has permalink 2018/en/how-to-bake-a-cake
.
You can customize the text to display, instead of displaying the post’s title.
Do not escape title.
{% post_link Markup-manual 'bold custom title' false %}
Note 标签
note演示效果
markdown默认写法,左边框颜色,随着主题色改变
我有一只小毛驴,我从来都不骑。
适合引用一段话
这是一个警告
这是一个错误
这是一个成功
这是一个信息
标题(可选)
noteblock base
标题(可选)
noteblock quote
标题(可选)
noteblock warning
标题(可选)
noteblock success
标题(可选)
noteblock danger
标题(可选)
noteblock info
Title 演示
演示
我是标题
你好啊,未来越来越好哦
我是标题
你好啊,加油哦
我是标题
我是标题
titleB 演示
我是标题bbb
我是标题bbb
我是标题bbb
Paragraph 段落文本
段落文本演示
我是一个文本高亮大萨达所多撒多撒多撒大多多撒多撒多撒大所多撒大多
我是一个文本高亮大萨达所多撒多撒多撒大多多撒多撒多撒大所多撒大多
我是一个文本高亮大萨达所多撒多撒多撒大多多撒多撒多撒大所多撒大多
我是一个文本高亮大萨达所多撒多撒多撒大多多撒多撒多撒大所多撒大多
我是一个文本高亮大萨达所多撒多撒多撒大多多撒多撒多撒大所多撒大多
我是一个文本高亮大萨达所多撒多撒多撒大多多撒多撒多撒大所多撒大多
我是一个文本高亮大萨达所多撒多撒多撒大多多撒多撒多撒大所多撒大多
我是一个文本高亮大萨达所多撒多撒多撒大多多撒多撒多撒大所多撒大多
我是一个文本高亮大萨达所多撒多撒多撒大多多撒多撒多撒大所多撒大多
我是一个文本高亮大萨达所多撒多撒多撒大多多撒多撒多撒大所多撒大多
我是一个文本高亮大萨达所多撒多撒多撒大多多撒多撒多撒大所多撒大多
我是一个文本高亮大萨达所多撒多撒多撒大多多撒多撒多撒大所多撒大多
我是一个文本高亮大萨达所多撒多撒多撒大多多撒多撒多撒大所多撒大多
我是一个文本高亮大萨达所多撒多撒多撒大多多撒多撒多撒大所多撒大多
Text 文本样式标签
Text文本样式标签演示
带 下划线 的文本
带
带
带 删除线 的文本
键盘样式的文本 command + D
密码样式的文本:
text color 文字颜色
这是一个简单的文字我是一个文字高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文字高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文字高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文字高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文字高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文字高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文字高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文字高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文字高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文字高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文字高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文字高亮,唱着我们心肠的曲折
text highlighting 文本高亮
文本高亮演示效果
这是一个简单的文字我是一个文本高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文本高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文本高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文本高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文本高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文本高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文本高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文本高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文本高亮,唱着我们心肠的曲折
这是一个简单的文字我是一个文本高亮,唱着我们心肠的曲折
Simple TABLE
col 1 | col 2 | col 2 |
---|---|---|
cell 1,1 | cell 1,2 | left 1,3 |
default 2,1 | right 2,2 | cell 2,3 |
Timeline 时间线演示
- 我是一个测试文字
ghghgh
。 - 我是一个测试问题二’qweqw’,请问企鹅请问请问佛挡杀
fgfgf
佛第三节课。 - 我是一个测试问题三’fgfgfg’,请问企鹅请问请问佛挡杀
trtrtr
佛第三节课。
这是一段测试文字
- 我是一个测试文字
ghghgh
。 - 我是一个测试问题二’qweqw’,请问企鹅请问请问佛挡杀
fgfgf
佛第三节课。 - 我是一个测试问题三’fgfgfg’,请问企鹅请问请问佛挡杀
trtrtr
佛第三节课。
Media
Video视频
video演示
100%宽度
50%宽度25%宽度
Audio 音频
YouTuber
1 |
|
Vimeo
{% vimeo 56695094 %}
Site-Card 演示
Wikipedia
{% wikipedia title:User_interface wikiButton:true lang:en sentences:5 %}
{% twitter https://twitter.com/MillsReggie/status/1475339348170375171 %}
FootNotes
Easy to add internal references similar to Wikipedia within the article. Simply add a bracketed carot number (e.g. [ ^1 ]
) in the paragraph. At the end of the article, place a section with each of the brackets and references like below:
1 |
|
CodeBlocks
1 |
|
Github 卡片
Github用户卡片

表格中加入用户卡片
![]() |
![]() |
---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
单个项目卡片




表格中加入单个项目卡片
![]() |
![]() |
---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
GIST
{% gist 18938572f5df000ebe06fbd1872e4e39 useHexo.md %}
Post Excerpt
Use text placed before the <!-- more -->
tag as an excerpt for the post. excerpt:
value in the front-matter, if specified, will take precedent.
Example:
1 |
|