A sliding spoiler creator for Hexo, inspired by hexo-spoiler
npm install hexo-sliding-spoilerInspired by hexo-spoiler
``bash`
npm install hexo-sliding-spoiler --save
If hexo can't detect this plugin automatically, you need to modify the plugins section of [path_to_your_site]/_config.yml manually, like:
`yaml`
plugins:
- hexo-sliding-spoiler
`plain`
{% spoiler title %}
content
{% endspoiler %}
It will hide your text and place the title at the top with a dropdown/scroll up arrow.
`plain`
{% spoiler word %}
content
{% endspoiler %}
`plain``
{% spoiler "Several spaces in the title" %}
content
{% endspoiler %}