Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@webmaeistro/gatsby-theme-graphql-wp
Advanced tools
The idea behind this theme is making a one-stop solution for a WordPress blog owner who wants to switch to Gatsby powered frontend. Simple to configure that works out of the box. For a common use scenario - standard WordPress installation, basic posts and pages content - only a source url is needed.
{
resolve: '@webmaeistro/gatsby-theme-graphql-wp',
options: {
wordPressUrl: 'https://your.wordpress.site/',
},
}
This theme uses GraphQL API to source WordPress content. Therefore the source WordPress site must use the wpgraphql plugin.
yarn add @webmaeistro/gatsby-theme-graphql-wp
{
resolve: '@webmaeistro/gatsby-theme-graphql-wp',
options: {
wordPressUrl: 'https://your.wordpress.site/',
menuLocation: 'MENU_1',
},
},
wordPressUrl
- source site.
uploadsUrl
- (optional) WordPress uploads folder. Uses default if this option not set.
processPostTypes
- (optional) post types to process. You can include custom post types as defined in wpgraphql however CPTs also need to have some code added to create pages on Gatsby site. And that is currently outside of this theme's scope.
useWebp
- (optional) if true uses WebP images. Default is false.
menuLocation
- WordPress menu location slug. Sanitized.
A build would break if menuLocation
was not cofigured right. The location slug comes from register_nav_menus
function call in functions.php
(example) of your WordPress theme.
siteMetadata: {
title: 'Site title',
author: 'Author name',
description: 'Site description',
social: [
{
name: 'twitter',
url: 'https://twitter.com/your_twitter',
},
],
},
<img>
tags to Gatbsy <Img>
component.<Img>
component.<Link>
component.This theme utilizes the gatsby-wpgraphql-inline-images plugin for most of the content processing.
{
resolve: '@webmaeistro/gatsby-theme-graphql-wp',
options: {
wordPressUrl: 'https://examplecom',
},
},
Special thanks for inspiration and some borrowed code go to:
https://github.com/jlengstorf
https://github.com/jasonbahl
https://wordpress.org/themes/juliet/
Demo site uses images by Unsplash and text content from Wikipedia.
FAQs
Gastby theme for wordpress in the back
We found that @webmaeistro/gatsby-theme-graphql-wp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.