https://github.com/jochumdev/ghost-jsdelivr
A simple helper to serve ghost frontend CDN content.
https://github.com/jochumdev/ghost-jsdelivr
Last synced: about 1 year ago
JSON representation
A simple helper to serve ghost frontend CDN content.
- Host: GitHub
- URL: https://github.com/jochumdev/ghost-jsdelivr
- Owner: jochumdev
- License: mit
- Created: 2024-05-05T19:25:18.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-05T11:59:46.000Z (almost 2 years ago)
- Last Synced: 2025-04-15T02:44:45.869Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 27.3 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ghost-jsdelivr
A simple helper to serve ghost theme CDN content that would be served trough jsdelivr GPDR compatible with your own "public" directory in `content/public/`.
## Install
### 1. Download and build this package in `content/public/`
```bash
pushd content/public/
git clone https://github.com/jochumdev/ghost-jsdelivr.git cdn
cd cdn
npm install && npm run build
popd
```
With [ncu](https://www.npmjs.com/package/npm-check-updates) installed:
```bash
pushd content/public/
git clone https://github.com/jochumdev/ghost-jsdelivr.git cdn
cd cdn
ncu -u && npm install && npm run build
popd
```
### 2. Adjust your config.production.json
```json
{
"sodoSearch": {
"url": "/public/cdn/sodo-search/umd/sodo-search.min.js",
"styles": "/public/cdn/sodo-search/umd/main.css"
},
"portal": {
"url": "/public/cdn/portal/umd/portal.min.js"
},
"comments": {
"url": "/public/cdn/comments-ui/umd/comments-ui.min.js",
"styles": false
}
}
```
### 3. Restart ghost
Done :)
## License
MIT