Giter Site home page Giter Site logo

forestryio / gatsby-starter-forestry Goto Github PK

View Code? Open in Web Editor NEW
29.0 29.0 16.0 9.09 MB

A gatsby starter site pre-configured for Forestry

Home Page: https://forestryio.github.io/gatsby-starter-forestry/

License: MIT License

JavaScript 85.72% SCSS 6.63% HTML 7.65%

gatsby-starter-forestry's People

Contributors

dirtyf avatar dwalkr avatar germoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gatsby-starter-forestry's Issues

Field "image" must not have a selection since type "String" has no subfields.

works on forestry, but on my local development server 【windows 10】 it shows error as follow:

There was an error in your GraphQL query:

Field "image" must not have a selection since type "String" has no subfields.

This can happen if you e.g. accidentally added { } to the field "image". If you didn't expect "image" to be of type "String" make sure that your input source and/or plugin is correct.

File: /gatsby-starter-forestry-a/src/templates/blocks.js

Preview Routing doesn't seem to work correctly

Previewing on any page ends up dropping me onto the Homepage. Is there additional configuration necessary to make this work? I thought we figured out how to create preview URLs for Instant Previews?

Error on initial build

Hi, I just imported the starter into forestry, then cloned my forked repo.

I haven't made any changes yet, although running the build NPM script results in errors:

error Plugin gatsby-plugin-feed returned an error


  Error: Cannot query field "siteUrl" on type "SiteSiteMetadata".
  GraphQL request (7:11)
  6:           description
  7:           siteUrl
               ^
  8:           site_url: siteUrl
  , Cannot query field "siteUrl" on type "SiteSiteMetadata".
  GraphQL request (8:11)
  7:           siteUrl
  8:           site_url: siteUrl
               ^
  9:         }

  - internals.js:22
    [forestry-blog]/[gatsby-plugin-feed]/internals.js:22:13

Running the main develop script builds fine and it successful spins up a local server that I can preview fine.

I've read through the repo README, although can't find anything that I'm doing wrong.

Preview Command

I believe there were some updates to the Preview Command UI that now recommend the correct build command out-of-the-box. In the starter-kit it is still hidden behind npm run forestry:preview. The better solution is probably to add the instant preview command gatsby develop -p 8080 -H 0.0.0.0 the same way that Forestry recommends it for other users to avoid confusion about what "forestry:preview" is?

I propose to change in settings.yml:
preview_command: npm run forestry:preview
to
preview_command: gatsby develop -H 0.0.0.0 -p 8080

Editing page content

Missing something here but I created a new Forestry site based on this starter and am able to see all of the pages in the associated admin UI. However, when I try to edit one of the pages such as about-the-ssg the actual content is not visible. Also dont see how or where to edit the page slug from within admin.

I can make these edits within the filesystem but am curious/concerned on the gap with admin.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.