Nonstop Progressive Marxism
Have ideas to improve npm?Join in the discussion! »

hexo-generator-cdn

1.0.0 • Public • Published

hexo-generator-cdn

hexo-generator-cdn is a hexo plugin which is used to have all images support cdn automatically.

Install

$ npm install hexo-generator-cdn --save

Usage

First add configuration in _config.yml from your hexo project.

  cdn:
    enable: false
    onlypost: false
    url: https://cdn.com
    img_url: https://cdn.com

onlypost

  • If true, only the images from post or page will support cdn.
  • If false, the whole images of your site will use cdn.

Enjoy it!

License

MIT

Install

npm i hexo-generator-cdn

DownloadsWeekly Downloads

8

Version

1.0.0

License

ISC

Unpacked Size

8.12 kB

Total Files

9

Last publish

Collaborators

  • avatar