From 525f5d95ae8facf39b9eb99119b885d22c7e4117 Mon Sep 17 00:00:00 2001 From: Adam Matthiesen Date: Fri, 12 Jan 2024 23:45:04 -0800 Subject: [PATCH] update readme --- README.md | 37 ++++++++++++++++++++++++++++++++++++- package.json | 2 +- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 302f0a2e..956ec72a 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,39 @@ This addon uses the `@tryghost/content-api` and creates astro friendly functions to interface between ghost and astro. -## Work In Progress README (*More Information will be provided as time goes on...*) \ No newline at end of file +This package contains a independent copy of the tryghost content-api.js that is used to establish the connection so this package dose not depend on `@tryghost/content-api` package. + +## Installation + +``` +npm install @adammatthiesen/astro-ghostcms +``` + +Must create `.env` with the following: + +```env +CONTENT_API_KEY= +CONTENT_API_URL= +``` + +Astro minimum Version: **Astro v4.0** + +Dependencies: +- **Axios v1.0** *Will be auto installed* +- **Typescript v5.3.3** *Will be auto installed* + +## Work In Progress README (*More Information will be provided as time goes on...*) + +Basic Usage: + +- getGhostPosts() - Get list of posts +- getGhostRecentPosts(setLimit?) - Get Recent Posts (setLimit={6}) +- getGhostFeaturedPosts(setLimit?) - Get Featured Posts (setLimit={1}) +- getGhostPostbySlug(slug) - Get Post by Slug +- getGhostPostsbyTag(slug) - Get Posts list by Tag slug +- getGhostTags() - Get list of tags +- getGhostTagbySlug(slug) - Get Tag by slug +- getGhostAuthors() - Get list of Authors +- getGhostPages() - Get list of Pages +- getGhostPage(slug) - Get page by slug +- getGhostSettings() - Get Settings for GhostCMS \ No newline at end of file diff --git a/package.json b/package.json index 71be937b..9a138581 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@adammatthiesen/astro-ghostcms", "description": "Astro GhostCMS integration to allow easier importing of GhostCMS Content", - "version": "0.0.1-beta.0", + "version": "0.0.1-beta.2", "author": "Adam Matthiesen ", "type": "module", "license": "MIT",