ghost-storage-github-jsdelivr

1.0.3 • Public • Published

Ghost adapter for upload to github and get accelerated link.

Adapter Usage

mkdir -p content/adapters/storage/ghost-storage-github-jsdelivr
cp node_modules/ghost-storage-github-jsdelivr/index.js content/adapters/storage/ghost-storage-github-jsdelivr/index.js
{
  "storage": {
    "active": "ghost-storage-github-jsdelivr",
    "ghost-storage-github-jsdelivr": {
      "token": "",
      "owner": "",
      "repos": "",
      "dir": "ghost/",
      "branch": "master",
      "filenameHandler": "date",
      "resolveLink": "cdnLink"
    }
  }
}
Key Type Default Description
token string required, github token
owner string required, github username
repos string required, github repos name
dir string ghost/ optional, upload directory, empty string means root dir. eg: sub/
branch string master optional, github repos branch
filenameHandler string date optional, filename handler. By default will prefix filename with date string. Pass 'hash' to get hashed filename
resolveLink string cdnLink optional, upload result link. By default is jsdelivr link, pass 'ghLink' to get raw link

Package Sidebar

Install

npm i ghost-storage-github-jsdelivr

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

5.96 kB

Total Files

4

Last publish

Collaborators

  • alex1504