hexo-image-cloudflare v0.3.2
hexo-image-cloudflare
A hexo plugin to use Cloudflare to cache images, powered by images.weserv.nl.
Installation
npm i hexo-image-cloudflare
Usage
After installing the plugin, all image urls will be converted to CDN urls automatically. For example, the origin markdown file is

Then it will be converted to

The local image urls will be also converted. For example, the original file is

It will be rendered as

where https://your.blog
is the url of your blog that you set in _config.yml
.
Configuration
You can custom the CDN server url in _config.yml
, and the default value is https://images.weserv.nl
.
Some other configurations are avaible.
cdn:
server: https://images.weserv.nl
use_webp: false
native: false # use cloudflare native image resize
max_width:
exclude_domains:
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago