Create Color Block Easily on Hexo
npm i hexo-tag-color-block
The full tag format is as follows:
{% colorblock [color hex code] [width] [height] %}
Example:
{% colorblock #f8dcf8 %}
will generate:
You can configure the dafault width in your site _config.yml
:
code_block:
width:
height:
# whether you want to show hex code
text:
default configuration:
code_block:
width: 10
height: 10
text: true
MIT.