Hexo admonitions

For a blog post that I’m writing I wanted to use admonitions. Because setting up hexo to use admonitions requires a tiny dose of manual tweaking I’m going to keep a note about it here in case I have to do it again in the future.

The steps to have admonitions are the following. First install a hexo plugin:

1
npm install hexo-admonitions --save

The next and final steps is to copy the required css styles to the current theme. I created a new stylus file called _admonitition.styl and imported it from the main stylus file style.styl:

1
@import "_admonitition"