0.1.7 • Published 5 years ago

hexo-tag-details v0.1.7

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

hexo-tag-details

NPM licence hexo Maintainability

HTML5 details tag on your Hexo article

Installation

npm install hexo-tag-details --save

Usage

{% details [mode:open/close] summary text %}
detail text
{% enddetails %}

Example1:

{% details Where are you from? %}
I'm from the Earth. Water Planet!
{% enddetails %}

it generates HTML:

<details>
  <summary>Where are you from?</summary>
  I'm from the Earth. Water Planet!
</details>

it is displayed:


Example2(Specify open mode):

{% details mode:open What food do you like? %}
1. Sushi
2. Tempura
3. Sukiyaki
{% enddetails %}

it generates HTML:

<details open="open">
  <summary>What food do you like?</summary>
  <ol>
    <li>Sushi</li>
    <li>Tempura</li>
    <li>Sukiyaki</li>
  </ol>
</details>

it is displayed:

Configuration

className

className is CSS class name for details tag. (Default: None)

open

open is default open mode for details tag.(Default: false)

_config.yml:

tag_details:
  className:
  open: false

License

MIT

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago