1.1.4 • Published 3 years ago

hexo-filter-cdn v1.1.4

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
3 years ago

hexo-filter-cdn

hexo-filter-cdn is a hexo plugin to replace URL links with your CDN configuration.

Install

$ npm install hexo-filter-cdn --save

Usage

Add configurations to _config.yml:

cdn_filter:
  enable: true
  post_only: false # only render posts
  filter_css: true # CSS file
  filter_html: # HTML file
    enable: true
    img_tag: true # <img src="{URL}">
    href_link: false # Not recommand, <... href="{URL}">
    src_link: true # <... src="{URL}">
  url: https://your.cdn.com
  img_url: https://your.img.cdn.com

Notice: relative paths will not be replaced.

Feature List

  • Replace URL of src attributes
  • Replace URL of href attributes
  • Replace URL in img tags
  • Filter HTML files
  • Option for post only
  • Filter CSS files
  • Filter JS files

License

GPL3+

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.9.0

3 years ago