New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@adammatthiesen/astro-ghostcms

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adammatthiesen/astro-ghostcms

Astro GhostCMS integration to allow easier importing of GhostCMS Content

  • 1.0.2
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Welcome to Astro-GhostCMS

This addon uses the @tryghost/content-api and creates astro friendly functions to interface between ghost and astro.

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:

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:

import { getGhostPosts } from "@adammatthiesen/astro-ghostcms";
  • 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

Keywords

FAQs

Package last updated on 15 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc