hexo-image-figure-caption
v0.1.0
Published
wrap images in figures and add caption
Downloads
6
Readme
hexo-image-figure-caption
wrap images in figures and add caption -- forked from wayou's hexo-image-caption
Installation
npm install --save hexo-image-figure-caption
Usage
adding following section to your hexo site _config.yml
file to enable and config plugin.
# add caption for iamges
image_caption:
enable: true #false to disable
class_name: #if you wanna customize the style for the caption,you can assign a class name, default is 'image-caption'
Your images will be wrapped in a figure
and the alt text will be placed in a figcaption
. This way you have a bit more control over the layout and can keep the caption with the figure as you lay things out, e.g. when you want to put several images side-by-side.
Credits
forked from wayou/hexo-image-caption
License
MIT