Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
img
 
 
 
 
 
 
 
 
 
 

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

Example

One word title

{% spoiler word %}
content
{% endspoiler %}

Title containing spaces

{% spoiler "Several spaces in the title" %}
content
{% endspoiler %}

About

A sliding spoiler for hexo

Resources

License

Releases

No releases published

Contributors 4

  •  
  •  
  •  
  •  
You can’t perform that action at this time.