Code Monkey home page Code Monkey logo

gatsby-blog-starter-kit's Introduction

gatsby-blog-starter-kit

Build Status Greenkeeper badge

Use this starter kit to jump start (or use as a reference) a great blog with gatsby

Blog example

Features

  1. Blog post listing with previews for each blog post
  2. Navigation between posts with a previous/next post button
  3. Tags and tag navigation
  4. Responsive images via gatsby-remark-images

Set up

  1. Clone this repo
  2. yarn
  3. yarn start

gatsby-blog-starter-kit's People

Contributors

danielruf avatar dschau avatar greenkeeper[bot] avatar hellothisisflo avatar renovate[bot] avatar strangehill avatar thepaulmcbride avatar zeroecks 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gatsby-blog-starter-kit's Issues

How to host blog at domain.com/blog/article?

Hi,

This is easily one of the most useful articles and resources on how to practically use GatsbyJS. Thank you so much for sharing this.

I was trying out how to host the www.domain.com/blog but still have other pages like www.domain.com/about and landing page in tact.

I tried changing the PathPrefix in gatsby-config.js but that's not working. Any help or guidance is greatly appreciated!

breaks w/ latest gatsby-source-filesystem

Followed tutorial in gatsby docs, but kept getting an error. cloned this repo and updated deps one at a time to trace it, and sure enough, updating gatsby-source-filesystem to latest breaks it

error Plugin default-site-plugin returned an error


  Error:

success createPages — 0.018 s
success createPagesStatefully — 0.016 s
GraphQL Error Unknown field `allMarkdownRemark` on type `RootQueryType`

  file: /home/bmp/code/gatsby-admitbrain/src/pages/index.js

   1 |
   2 |   query IndexQuery {
>  3 |     allMarkdownRemark(sort: { order: DESC, fields: [frontmatter___date] }) {
     |     ^
   4 |       edges {
   5 |         node {
   6 |           excerpt(pruneLength: 250)
   7 |           id
   8 |           frontmatter {
   9 |             title
  10 |             date(formatString: "MMMM DD, YYYY")
  11 |             path
  12 |           }
  13 |

UNHANDLED REJECTION ReferenceError: regeneratorRuntime is not defined

I get the following error after cloning the kit and running yarn.
I have to install yarn add gatsby-plugin-sharp manually otherwise i get some sharp.node errors.

One I run yarn start i get the following.

D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit (master) (@dschau/[email protected])
λ yarn start
yarn start v0.27.5
warning ....\package.json: No license field
$ npm run develop

@dschau/[email protected] develop D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit
gatsby develop

success open and validate gatsby-config.js — 0.007 s

One or more of your plugins have changed since the last time you ran Gatsby. As
a precaution, we're deleting your site's cache to ensure there's not any stale
data

success copy gatsby files — 0.030 s
success source and transform nodes — 0.168 s
success building schema — 0.165 s
⠁ UNHANDLED REJECTION ReferenceError: regeneratorRuntime is not defined
at D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:12:47
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:97:2)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-remark-images\index.js:22:16)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
UNHANDLED REJECTION ReferenceError: regeneratorRuntime is not defined
at D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:12:47
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:97:2)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-remark-images\index.js:22:16)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
UNHANDLED REJECTION ReferenceError: regeneratorRuntime is not defined
at D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:12:47
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:97:2)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-remark-images\index.js:22:16)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
UNHANDLED REJECTION ReferenceError: regeneratorRuntime is not defined
at D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:12:47
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:97:2)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-remark-images\index.js:22:16)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
UNHANDLED REJECTION ReferenceError: regeneratorRuntime is not defined
at D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:12:47
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:97:2)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-remark-images\index.js:22:16)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
UNHANDLED REJECTION ReferenceError: regeneratorRuntime is not defined
at D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:12:47
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:97:2)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-remark-images\index.js:22:16)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
UNHANDLED REJECTION ReferenceError: regeneratorRuntime is not defined
at D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:12:47
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:97:2)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-remark-images\index.js:22:16)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
UNHANDLED REJECTION ReferenceError: regeneratorRuntime is not defined
at D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:12:47
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-plugin-sharp\index.js:97:2)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (D:\Dropbox\Sites\Gatsby-Sites\gatsby-blog-starter-kit\node_modules\gatsby-remark-images\index.js:22:16)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)

failing unit tests

sharp compilation fails on Travis CI due to the Node.js version probably.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • fix(deps): update dependency react-icons to v5

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • gatsby ~2.0.0-beta.69
  • gatsby-link 2.0.0-beta.4
  • gatsby-plugin-catch-links 2.0.2-beta.2
  • gatsby-plugin-manifest ~2.0.2-beta.3
  • gatsby-plugin-offline ~2.0.0-beta.6
  • gatsby-plugin-react-helmet 3.0.0-beta.3
  • gatsby-plugin-sharp 2.0.0-beta.5
  • gatsby-remark-images 2.0.1-beta.6
  • gatsby-source-filesystem 2.0.1-beta.3
  • gatsby-transformer-remark 2.1.1-beta.3
  • react ~16.3.0
  • react-dom ~16.3.0
  • react-helmet ~5.2.0
  • react-icons ~2.2.5
  • gh-pages 1.1.0
  • prettier 1.10.2
travis
.travis.yml

  • Check this box to trigger a request for Renovate to run again on this repository

Project does not compile after creation

After creating a project via gatsby new blog https://github.com/dschau/gatsby-blog-starter-kit and starting it with npm start, I get the following output:

► npm start

> [email protected] start /Users/frankeg/dev/blog
> npm run develop


> [email protected] develop /Users/frankeg/dev/blog
> gatsby develop

The above error occurred in the <StoreStateProvider> component:
    in StoreStateProvider
    in App

React will try to recreate this component tree from scratch using the error boundary you provided, App.
Warning: App: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] develop: `gatsby develop`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] develop script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/frankeg/.npm/_logs/2019-11-01T22_03_47_665Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `npm run develop`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/frankeg/.npm/_logs/2019-11-01T22_03_47_683Z-debug.log

I suppose this has to do with a new version of react, but cant exactly point out what it is. could you take a look at this?

Cannot read property 'allMarkdownRemark' of undefined

I just cloned the repo and I am getting the error in the title:

Uncaught TypeError: Cannot read property 'allMarkdownRemark' of undefined at new Index (index.js:9)
The above error occurred in the <Index> component:
Uncaught TypeError: Cannot read property 'allMarkdownRemark' of undefined at new Index (index.js:9)

I installed with yarn.

There are conflicting field types in your data—warning msg

Hi,
I set up a new project by using the gatsby-blog-starter-kit. Everything was generated by the starter.
But:
After running gatsby developI'm always getting this warning:

warning There are conflicting field types in your data. GraphQL schema will omit those fields.
SitePluginConnection.packageJson.author:

Does someone know why? What happened?

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.