canvas-ribbon.js for NexT
Change dir to NexT directory. There must be layout, source, languages and other directories:
$ cd themes/next
$ ls
_config.yml crowdin.yml docs gulpfile.js languages layout LICENSE.md package.json README.md scripts sourceInstall module to source/lib directory:
$ git clone https://github.com/theme-next/theme-next-canvas-ribbon source/lib/canvas-ribbonEnable module in NexT _config.yml file:
canvas_ribbon:
enable: trueAnd, if you wants to use the CDN, then need to set:
vendors:
...
canvas_ribbon: //cdn.jsdelivr.net/gh/theme-next/theme-next-canvas-ribbon@1/canvas-ribbon.js$ cd themes/next/source/lib/canvas-ribbon
$ git pull