A plugin used to fold content block, modified from hexo-sliding-spoiler.
English | 中文
- Simple, efficient and beautiful
- Support text, images, code blocks, and more
- Adaptive, ultra-large capacity
- User-defined color
npm install hexo-fold --save
If hexo can't detect this plugin automatically, you need to modify the plugins
section of /_config.yml
manually, like:
plugins:
- hexo-fold
If you want to customize the color, please add the following configuration. This is optional, if not configured a default color will be used.
fold:
bg_color: "#e5efe7"
board_color: "#e5efe7a1"
text_color: "#353535"
{% fold title %}
content
{% endfold %}
It will hide your text and place the title at the top with a dropdown/scroll up arrow.
{% fold word %}
content
{% endfold %}
{% fold "Several spaces in the title" %}
content
{% endfold %}