hexo-tag-details
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:
Where are you from? I'm from the Earth. Water Planet!
it is displayed:
Where are you from?
I'm from the Earth. Water Planet!Example2(Specify open mode):
{% details mode:open What food do you like? %}
1. Sushi
2. Tempura
3. Sukiyaki
{% enddetails %}
it generates HTML:
What food do you like? Sushi Tempura Sukiyaki
it is displayed:
What food do you like?
- Sushi
- Tempura
- Sukiyaki
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