A sliding spoiler for hexo
JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
img
LICENSE
README.md
index.js
package.json

README.md

Inspired by hexo-spoiler

Install

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:

plugins:
 - hexo-sliding-spoiler

Syntax

{% spoiler title %}
content
{% endspoiler %}

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

Demo