HamiltonHuaji / hexo-sliding-spoiler

A sliding spoiler for hexo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 56.5%Language:CSS 43.5%