kenfehling / gatsby-netlifycms-tailwind-starter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gatsby   Netlify CMS   Tailwind CSS

Gatsby v3 - Netlify CMS - Tailwind CSS - Starter

Netlify Status

An example website built using Gatsby v3, Netlify CMS and Tailwind CSS.

It's a website of a fake urban gardening agency and comprises of a landing page, a project portfolio, about page with team members, and a contact form.

πŸ‘‰ Check out the demo site!

🦾 Technologies and Plugins

  • βš›οΈ Gatsby v3
  • ✍️ Netlify CMS (incl. Admin live preview for all pages)
  • πŸ’¨ Tailwind CSS for styling
  • πŸŒƒ Performant images with gatsby-plugin-image and gatsby-plugin-sharp
  • β›‘ Site metadata with react-helmet
  • πŸ—Ί Sitemap with gatsby-plugin-sitemap
  • πŸ€– Robots.txt with gatsby-plugin-robots-txt
  • 🧩 Persistent navbar and footer with gatsby-plugin-layout
  • ...

πŸ’» Local Development

Start development environment with

$ git clone https://github.com/jimmybutton/gatsby-netlifycms-tailwind-starter.git
$ cd gatsby-netlifycms-tailwind-starter
$ npm install
$ gatsby develop

The site is now available at localhost:8000/.

You can connect Netlify CMS to your local git repo (currenly a beta feature) by running this command in a separate terminal.

$ npx netlify-cms-proxy-server

The Netlify CMS Admin will then be available at localhost:8000/admin.

For more details on how to set up the CMS, check out the Netlify CMS Docs.

🚨 Known issues

When running Netlify CMS locally and updating a page, I regularly get the following error:

There was an error in your GraphQL query: Field "image" must not have a selection since type "String" has no subfields.

This seems to have to do with the gatsby-remark-relative-images plugin. However, the solution suggested in the docs didn't fix the issue for me.

I've you find a solution that works, please let me know or submit a pull request. Thanks!

πŸ™Œ Credits and thanks

πŸ›  Todo

About

License:BSD Zero Clause License


Languages

Language:JavaScript 99.9%Language:CSS 0.1%