Skip to content

A plugin used to fold content block, modified from hexo-sliding-spoiler./ hexo 内容折叠插件

License

Notifications You must be signed in to change notification settings

AimTao/hexo-fold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Demo

example.gif

Install

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"

Syntax

{% fold title %}
content
{% endfold %}

It will hide your text and place the title at the top with a dropdown/scroll up arrow.

Example

One word title

{% fold word %}
content
{% endfold %}

Title containing spaces

{% fold "Several spaces in the title" %}
content
{% endfold %}

About

A plugin used to fold content block, modified from hexo-sliding-spoiler./ hexo 内容折叠插件

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published