hexo-sliding-spoiler

1.2.1 • Public • Published

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 %}

Readme

Keywords

Package Sidebar

Install

npm i hexo-sliding-spoiler

Weekly Downloads

35

Version

1.2.1

License

MIT

Unpacked Size

507 kB

Total Files

7

Last publish

Collaborators

  • fletch_to_99