API Client
// https://ghost.org/docs/api/v3/javascript/content/
// https://ghost.org/docs/api/v3/javascript/admin/
yarn add @tryghost/content-api
yarn add @tryghost/admin-api
Tools
yarn add @tryghost/helpers
yarn add @tryghost/string
const {tags, readingTime} = require('@tryghost/helpers');
const {slugify} = require('@tryghost/string');
const slug = slugify('你好 👋!'); // slug === "ni-hao"
API
// https://ghost.org/docs/api/v3/content/#endpoints
// https://ghost.org/docs/api/v3/admin/#endpoints
https://demo.ghost.io/ghost/api/v3/content/posts/?key=22444f78447824223cefc48062&include=tags,authors
官方文檔中的小疏漏