Next Phenomenal Microbrewery

    hexo-filter-links

    1.0.7 • Public • Published

    hexo-filter-links

    npm version npm license npm download

    All external links to Internal links automatically.

    一个修改外部链接为内部链接的Hexo插件。

    hexo-filter-links Modify links Looks like example.com/go/?ZXhhbXBsZS5jb20=

    Installations

    $ npm i hexo-filter-links --save

    Options

    links:
      enable: true
      field: 'site'
      exclude:
        - 'exclude1.com'
        - 'exclude2.com'
        - '*.exclude3.com' #need version >= 1.0.4
    • enable - Enable the plugin. Default value is true.
    • field - The scope you want the plugin to proceed, can be 'site' or 'post'. Default value is site.
      • 'post' - Only Modify external links in your post content
      • 'site' - Modify external links of whole sites
    • exclude - Exclude hostname. Specify subdomain when applicable, including www.
      • 'exclude1.com' does not apply to www.exclude1.com nor en.exclude1.com.
      • '*.exclude2.com' does apply to www.exclude2.com nor en.exclude2.com. need version >= 1.0.4

    Install

    npm i hexo-filter-links

    DownloadsWeekly Downloads

    11

    Version

    1.0.7

    License

    MIT

    Unpacked Size

    17.4 kB

    Total Files

    8

    Last publish

    Collaborators

    • naicfeng