Skip to content

HamiltonHuaji/hexo-sliding-spoiler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 56.5%
  • CSS 43.5%