hexo-sliding-spoiler
v2.0.0
Published
A sliding spoiler creator for Hexo, inspired by hexo-spoiler
Maintainers
Readme
Inspired by hexo-spoiler
Install
npm install hexo-sliding-spoiler --saveIf hexo can't detect this plugin automatically, you need to modify the plugins section of [path_to_your_site]/_config.yml manually, like:
plugins:
- hexo-sliding-spoilerSyntax
{% sliding_spoiler title %}
content
{% endsliding_spoiler %}It will hide your text and place the title at the top with a dropdown/scroll up arrow.
⚠️ Breaking change (v2.0.0): The tag was renamed from
{% spoiler %}to{% sliding_spoiler %}to avoid conflicts with hexo-spoiler. Update your posts to use the new tag name.
Demo

Example
One word title
{% sliding_spoiler word %}
content
{% endsliding_spoiler %}Title containing spaces
{% sliding_spoiler "Several spaces in the title" %}
content
{% endsliding_spoiler %}