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
Source plugin for pulling data into Gatsby from Ghost.
yarn add gatsby-source-ghost
or npm i --save gatsby-source-ghost
// In your gatsby-config.js
plugins: [
{
resolve: 'gatsby-source-ghost'
options: {
url: 'http://localhost:2368', // Required. URL to the Ghost instance, including the protocol
clientId: 'ghost-frontend', // Optional, defaults to 'ghost-frontend'
clientSecret: 'secret123', // Required, see Ghost API docs for where to find that value
posts: {
component: require('path').resolve('./src/pages/blog/post.js'), // Optional, if not set no post pages will be generated
path: 'blog' // Optional, specifies the URL prefix for the blog posts. Defaults to 'blog'
}
}
}
]
You can query nodes created from Wordpress using GraphQL like the following: Note: Learn to use the GraphQL tool and Ctrl+Spacebar at <ghostUrl/___graphiql> to discover the types and properties of your GraphQL model.
{
allGhostBlogPost {
edges {
node {
id
uuid
title
slug
mobiledoc
html
plaintext
amp
feature_image
featured
page
status
locale
visibility
meta_title
meta_description
author_id
created_at
created_by
updated_at
updated_by
published_at
published_by
custom_excerpt
codeinjection_head
codeinjection_foot
og_image
og_title
og_description
twitter_image
twitter_title
twitter_description
authors {
id
name
slug
profile_image
cover_image
bio
website
location
facebook
twitter
accessibility
locale
visibility
meta_title
meta_description
tour
}
tags {
id
name
slug
description
feature_image
visibility
meta_title
meta_description
created_at
created_by
updated_at
updated_by
parent
}
}
}
}
}
Issues and PRs are welcome :)
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.