Giter VIP home page Giter VIP logo

hexo-tag-pcloud's Introduction

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.

hexo-tag-pcloud's People

Contributors

p1slave avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.