Socket
Book a DemoInstallSign in
Socket

hexo-filter-cdn

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-filter-cdn

A hexo plugin to replace URLs with your CDN configuration.

1.1.4
latest
Source
npmnpm
Version published
Weekly downloads
8
Maintainers
1
Weekly downloads
 
Created
Source

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+

Keywords

hexo

FAQs

Package last updated on 08 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.