Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
gatsby-source-ghost
Advanced tools
Gatsby source plugin for building websites using the Ghost API as a data source.
Source plugin for pulling data into Gatsby.js from the Ghost Public API.
npm install --save gatsby-source-ghost
You need to specify three properties in your gatsby-config.js
:
{
resolve: `gatsby-source-ghost`,
options: {
apiUrl: `https://<your-subdomain>.ghost.io`,
clientId: `ghost-frontend`,
clientSecret: `<your client secret>`
}
}
apiUrl
The admin or API URL for your Ghost site. For Ghost(Pro) customers this is your .ghost.io
domain. For self hosters it is your main domain unless you have a separate admin
url configured. Note that this URL should be served over HTTPS.
clientId
This is almost always ghost-frontend
, unless you have a custom client, which is not yet fully supported by Ghost.
clientSecret
The secret
for the ghost-frontend
client, which can be found just above the </head>
tag on any page on your Ghost site.
There are 4 node types available from Ghost: Post, Page, Author and Tag.
Documentation for the full set of fields made available for each resource type can be found in the Public API docs.
Posts and Pages have the same properties.
You can query Post nodes created from Ghost like the following:
{
allGhostPost(sort: { order: DESC, fields: [published_at] }) {
edges {
node {
id
slug
title
html
published_at
...
tags {
id
slug
...
}
primary_tag {
id
slug
...
}
authors {
id
slug
...
}
}
}
}
}
You can query Page nodes created from Ghost like the following:
{
allGhostPage {
edges {
node {
id
slug
title
html
...
}
}
}
}
You can query Tag nodes created from Ghost like the following:
{
allGhostTag {
edges {
node {
id
slug
name
...
}
}
}
}
You can query Author nodes created from Ghost like the following:
{
allGhostAuthor {
edges {
node {
id
slug
name
...
}
}
}
}
Copyright (c) 2018 Ghost Foundation - Released under the MIT license.
FAQs
Gatsby source plugin for building websites using the Ghost API as a data source.
The npm package gatsby-source-ghost receives a total of 177 weekly downloads. As such, gatsby-source-ghost popularity was classified as not popular.
We found that gatsby-source-ghost demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 28 open source maintainers collaborating on the project.
Did you know?
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.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.