Hexo 添加提醒框

在寻找博客背景音乐的插件的过程中,无意间找到一个很有用的插件

lxl80/hexo-admonition: Add block-styled admonition to hexo, e.g. note, warning or error. | Hexo内容辅助插件,支持向文档中添加如提示、警告、错误等块式内容。

这插件支持 reST 风格的提示框,这个对我这种喜欢用 Sphinx 来写代码文档的 coder 来说非常友好熟悉,那必须安排一下!

安装

1
npm install hexo-admonition --save

!!! note Hexo-admonition 插件使用示例 这是基于 hexo-admonition 插件渲染的一条提示信息。类型为 note,并设置了自定义标题。

​ 提示内容开头留 4 个空格,可以有多行,最后用空行结束此标记。

样例展示

!!! warning 这是warning类型。

!!! warning "" 这是无标题的warning类型。

!!! info

​ 这是info类型

!!! todo

​ 这是todo类型

!!! attention

​ 这是attention类型

!!! caution

​ 这是caution类型

!!! error

​ 这是error类型

!!! failure

​ 这是failure类型

!!! missing

​ 这是missing类型

!!! fail

​ 这是fail类型

总结

看了一下,貌似渲染不出来哈~ 这个插件也是很老了,在 NexT 主题不能正确展示,无奈放弃吧