0.3.2 • Published 3 years ago

hexo-image-cloudflare v0.3.2

Weekly downloads
135
License
-
Repository
-
Last release
3 years ago

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

![Work/Life Balance](https://drive.google.com/uc?id=1PElTKhhNIPYSuoXIQtwTyq-RcWKA5MYd&export=download)

Then it will be converted to

![Work/Life Balance](https://images.weserv.nl/?url=https://drive.google.com/uc?id=1PElTKhhNIPYSuoXIQtwTyq-RcWKA5MYd&export=download)

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

![Work/Life Balance](/img/anti996.png)

It will be rendered as

![Work/Life Balance](https://images.weserv.nl/?url=https://your.blog/img/anti996.png)

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:
0.3.0-1

3 years ago

0.3.0-0

3 years ago

0.3.0-2

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago