All Projects → ryanwiemer → Gatsby Starter Gcn

ryanwiemer / Gatsby Starter Gcn

Licence: mit
A starter template to build amazing static websites with Gatsby, Contentful and Netlify

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Gatsby Starter Gcn

Gatsby Theme Try Ghost
A Gatsby theme to build flaring fast blogs from headless Ghost CMS
Stars: ✭ 88 (-81.97%)
Mutual labels:  gatsby, static-site, gatsbyjs, blogging
Devblog
A lightweight, customizable personal blog template built with GatsbyJS and React
Stars: ✭ 312 (-36.07%)
Mutual labels:  gatsby, static-site, gatsbyjs, static
gatsby-attila-theme-ghost
A Gatsby theme plugin for creating blogs from headless Ghost CMS.
Stars: ✭ 16 (-96.72%)
Mutual labels:  blogging, gatsby, static-site, gatsbyjs
Gatsby Starter Try Ghost
Publish flaring fast blogs with Gatsby and Ghost
Stars: ✭ 137 (-71.93%)
Mutual labels:  gatsby, static-site, gatsbyjs, blogging
subtle-ui
A collection of clever yet understated user interactions found on the web
Stars: ✭ 39 (-92.01%)
Mutual labels:  static, gatsby, static-site, gatsbyjs
Gatsby Starter Ghost
A starter template to build lightning fast websites with Ghost & Gatsby
Stars: ✭ 752 (+54.1%)
Mutual labels:  netlify, gatsby, static-site, gatsbyjs
Gatsby Shopify Theme
🛒 Simple theme to build a blazing simple and fast store with Gatsby and Shopify.
Stars: ✭ 95 (-80.53%)
Mutual labels:  netlify, gatsby, gatsbyjs
Gatsby Starter Lumen
A constantly evolving and thoughtful architecture for creating static blogs.
Stars: ✭ 1,797 (+268.24%)
Mutual labels:  netlify, gatsby, static
Here Covid 19 Tracker
Using HERE Technologies APIs, fork and build your own COVID-19 Tracker. For a live version, see the website.
Stars: ✭ 200 (-59.02%)
Mutual labels:  netlify, gatsby, gatsbyjs
testimonial
Jamstack app using Gatsby, Netlify, and FaunaDB.
Stars: ✭ 23 (-95.29%)
Mutual labels:  gatsby, netlify, gatsbyjs
gatsby-blog-template
✍️ A GatsbyJS Blog Template for blogging purposes.
Stars: ✭ 38 (-92.21%)
Mutual labels:  gatsby, netlify, gatsbyjs
gatsby-starter
Gatsby Starter for creating portfolio & blog.
Stars: ✭ 55 (-88.73%)
Mutual labels:  gatsby, netlify, gatsbyjs
Rw
Ryan Wiemer's Digital Portfolio
Stars: ✭ 87 (-82.17%)
Mutual labels:  netlify, gatsby, static-site
Gatsby Advanced Starter
A high performance skeleton starter for GatsbyJS that focuses on SEO/Social features/development environment.
Stars: ✭ 1,224 (+150.82%)
Mutual labels:  netlify, gatsby, gatsbyjs
Eleventy Starter Boilerplate
🚀 Eleventy Starter is production-ready with SEO-friendly for quickly starting a blog. ⚡ Built with Eleventy, ESLint, Prettier, Webpack, PostCSS, Tailwind CSS and Netlify CMS (optional).
Stars: ✭ 139 (-71.52%)
Mutual labels:  netlify, static-site, blogging
Dantecalderon.dev
💻 ❤️ My personal website
Stars: ✭ 51 (-89.55%)
Mutual labels:  netlify, gatsby, gatsbyjs
Netlify Rebuild
WordPress Plugin to trigger Netlify rebuild
Stars: ✭ 19 (-96.11%)
Mutual labels:  netlify, gatsby, static-site
Discord Fork
An open source Discord Bot List made with GatsbyJS
Stars: ✭ 60 (-87.7%)
Mutual labels:  gatsby, netlify, gatsbyjs
Gatsby Docker
Develop & Build GatsbyJS static sites within Docker.
Stars: ✭ 184 (-62.3%)
Mutual labels:  gatsby, static-site, gatsbyjs
gatsby-starter-antoine
My opinionated Gatsby.js starter
Stars: ✭ 17 (-96.52%)
Mutual labels:  gatsby, netlify, gatsbyjs

gatsby-starter-gcn

A starter template to build amazing static websites with Gatsby, Contentful and Netlify. Inspired by gatsby-contentful-starter.

Features

  • Contentful integration with ready to go placeholder content
  • Netlify integration including a pre-built contact form
  • Minimal responsive design - made to customize or tear apart
  • Pagination logic
  • Theme UI
  • SEO Friendly Component
    • OpenGraph sharing support
    • Sitemap Generation
  • Google Analytics
  • Progressive Web app
  • Offline Support
  • Gatsby Standard module for linting Javascript with StandardJS
  • Stylelint support for Styled Components to lint the CSS in JS

Demo

https://gcn.netlify.com/

Getting Started

Install

git clone https://github.com/ryanwiemer/gatsby-starter-gcn.git
yarn install

Or via the Gatsby CLI

gatsby new gatsby-starter-gcn https://github.com/ryanwiemer/gatsby-starter-gcn.git

Setup Contentful

  1. Sign up for Contentful and create a new empty space

  2. yarn run setup

  3. Enter in the requested info for your Contentful space found here: app.contentful.comSpace SettingsAPI keys. You will need to provide both a standard API key (first tab) and a management key (second tab).

Customization

Website Data

Edit siteMeta data in /src/gatsby-config.js

  siteMetadata: {
    title: 'GCN', // Title of the website
    description: // Description of the website
      'A starter template to build amazing static websites with Gatsby, Contentful and Netlify',
    siteUrl: 'https://gcn.netlify.com', // Website URL. Do not include trailing slash
    image: '/images/share.jpg', // Path to default image for SEO
    menuLinks: [ // The links used in the top menu
      {
        name: 'Home',
        slug: '/',
      },
      {
        name: 'About',
        slug: '/about/',
      },
      {
        name: 'Contact',
        slug: '/contact/',
      },
    ],
    postsPerFirstPage: 7, // Number of posts on the first page
    postsPerPage: 6, // Number of posts used on all other pages
    /*
      Root URL for posts and tags
      For example: 'blog' will result in:
        - www.example.com/blog/
        - www.example.com/blog/post-name/
        - www.example.com/blog/tag/tag-name/
    */
    basePath: '/', // Defaults to the homepage
  }

Note: If you do not see your changes reflected when developing locally you may need to run yarn clean followed by restarting the server via yarn develop.

Theme UI

Edit /src/gatsby-plugin-theme-ui/index.js

export default {
  colors: {
    background: '#ffffff',
    text: '#121212',
    primary: '#121212',
    secondary: '#e9e9e9',
    tertiary: '#f3f3f3',
    highlight: '#5b8bf7',
  },
  fonts: {
    body:
      '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',
  },
  sizes: {
    maxWidth: '1050px',
    maxWidthCentered: '650px',
  },
  responsive: {
    small: '35em',
    medium: '50em',
    large: '70em',
  },
}

Using Gatsby Standard

  1. Quickly check your code for errors with the yarn test script
  2. You can view the Gatsby Standard README for details on how to integrate this project's included Gatsby Standard, Stylelint, and Prettier modules into your text editor

Content and SEO

  1. You can replace the share.jpg and favicon.png files in the static/images directory.
  2. Meta descriptions are defined in Contentful. If you choose to leave this field blank on new posts a 320 character excerpt of the post/page will be used instead.

Deployment

Manual Netlify Deployment

  1. Run gatsby build

  2. Drag and drop the folder /public/ into Netlify

Netlify Deployment From Git (Recommended)

  1. New Netlify website from Git

  2. Connect with GitHub and select your repo

  3. Navigate to Netlify: SettingsBuild & DeployBuild Environment Variables. Add the following environment variables using the Space ID and Content Delivery API - access token from Contentful. Additionally if desired you can enter a Google Analytics ID. The variables must be named exactly like this in order to work properly.

ACCESS_TOKEN
SPACE_ID
GOOGLE_ANALYTICS

  1. Navigate to Netlify: Deploys. Click Trigger deploy to manually trigger a deploy to confirm the website is building successfully using your build environment variables. At this point be aware that every time you push to master a deploy will automatically start and be published to production.

Additional Settings

Contentful Webhook (Optional)

  1. Navigate to Netlify: SettingsBuild & DeployBuild hooks. Create a new build hook.

  2. Navigate to Contentful: app.contentful.comSpace SettingsWebhooks. Create a webhook using the Netlify build URL that you just created and configure which events should trigger the build on production. For example the following will rebuild the production website every time a post or page is published, unpublished or deleted:

Netlify Form Notifications (Optional)

  1. Navigate to Netlify: FormsNotifications

  2. Click the add notification dropdown and select your desired notification method.

Useful Tips

  • If you make edits to your Contentful space while running yarn develop you will need to stop it and rerun the command to see the changes reflected. For example a new post or page will not automatically show up until the website has been rebuilt.
  • DO NOT store your Contentful access tokens or space ids anywhere in GitHub. Treat them like passwords.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].