Skip to content

p1slave/hexo-tag-pcloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexo-tag-pcloud

npm version license

Display asset links of images uploaded to pcloud in your Hexo blog. This tag plugin also provides the option in _config.yml to turn off this feature and switch back to the default asset folder in Hexo.

Install

In your blog folder, add this npm dependency to your project

$ npm i hexo-tag-pcloud --save

Usage

{% pcloudimg path/to/image.jpg %}

Options

name Description Required Type Default
enable Enable pcloud link for image assets or not No boolean false
host A pcloud host name either in the US or EU No string https://filedn.com
public_folder The name of public folder Yes string Undefined
asset_path Relative asset folder path inside public folder Yes string Undefined

Configuration

You can configure default settings in _config.yml. By disabling this plugin in the setting, you don't have to change every pcloud tag in your blog posts if you decide to fall back to the default image tag later.

pcloud:
  enable: false
  host: https://filedn.com
  public_folder: XXXXXXXXXXXXXXX
  asset_path: path/to/asset_folder

License

© Licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published