A spoiler tag for Hexo
JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
Latest commit eadc4fa Dec 6, 2017
Failed to load latest commit information.
img README and preview images Jun 25, 2016
src fix for event not firing Mar 16, 2017
.gitignore .gitignore Jun 25, 2016
LICENSE Initial commit Jun 25, 2016
README.md README Sep 8, 2016
index.js finally Dec 6, 2017
package.json finally Dec 6, 2017



npm install hexo-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:

 - hexo-spoiler


{% spoiler [text] %}

It will pixelate your text, and click to reveal. Click again to hide your text again.

But you need to add <br> manually if you want line breaks after/before it.


When you writes:

{% spoiler text %} 
{% spoiler ~~text~~ %}
{% spoiler *text* %}
{% spoiler **text** %}