Ckbhatia / Ck-gatsby-blog

A beautiful and featureful gatsby blog starter for bloggers. It is an open-source project.
https://chetanblog.netlify.com
MIT License
37 stars 33 forks source link
blog gatsbyjs hacktoberfest hacktoberfest2023 javascript react

Ck Gatsby

Ck Gatsby blog starter

A beautiful and featureful gatsby blog starter for bloggers!

 

[![Build Status](https://travis-ci.org/athityakumar/colorls.svg?branch=master)](https://travis-ci.org/athityakumar/colorls) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=shields)](https://github.com/Ckbhatia/Ck-gatsby-blog/pulls) [![License](https://img.shields.io/github/license/day8/re-frame.svg)](license.txt) [![Live Demo](https://img.shields.io/badge/demo-online-green.svg)](https://chetanblog.netlify.com)
landing page

 

Table of contents

Features

Request to users, contributors and visitors. Please :star: star the repo to increase its reach. It will help us to reach more users and contributors. So, they can support this beautiful project.

Quick Start

Create a Gatsby site

Use the Gatsby CLI to create a new site, specifying the Ck gatsby starter.

# Create a new Gatsby blog site using the Ck blog gatsby starter
gatsby new <project-name> https://github.com/Ckbhatia/Ck-gatsby-blog

Start Developing

Navigate into your new site’s directory and start it up.

cd blog
gatsby develop

Open the source code and start editing!

Your site is now running at http://localhost:8000!

Note: You'll also see a second link: http://localhost:8000/___graphql. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.

Access Locally

$ git clone https://github.com/[GITHUB_USERNAME]/[REPO_NAME].git
$ cd [REPO_NAME]
$ yarn
$ npm run develop

Set-up contentful CMS

It's optional to set-up contentful CMS.

You can use any other CMS or create MDX files in this app.

Note: You need to modify config for other CMS or MDX else set-up contentful CMS to use this project.

There are seven types of fields required.

Name Field ID Appearance Other
Title title Short Text Entry File
Slug slug Short
Thumbnail thumbnail Media
Topic topic Short Text
Author author Short Text
Published published Date & Time
Body body Rich Text

Note: Field ID is case sensitive.

You can also use this pre-built content model

Config contentful

For Demo app:

CONTENTFUL_SPACE_ID=zorf8a5obm1d
CONTENTFUL_ACCESS_TOKEN=v4WRlGF6fTfBUrP54Hbaiava6VjPgKbW8mFEOgzEiPY

Note: contributors can use these credentials and skip to set-up their own contentful CMS.

Publishing article with contentful

Deploy with Netlify

Click the button below to build and deploy your own copy of the repository:

Deploy to Netlify

Contributing

Your contributions are always welcome! Please have a look at the contribution guidelines first. :tada:

Folder Structure

└── Public
└── static
    └── favicon
└── src
    ├── assets
    │   ├── _base
    │   ├── _general
    │   ├── _reset
    │   ├── _vars
    │   └── main
    ├── components
    │   ├── Article_page
    |   |   ├── MainBlog
    |   |   ├── Post
    |   |   ├── Share
    |   |   └── Sidebar
    |   ├── Main_page
    |   |   ├── Article
    |   |   ├── LatestPost
    |   |   ├── MainPage
    |   |   └── Sidebar
    │   ├── Footer
    │   ├── Head
    │   ├── Header
    │   ├── Layout
    │   ├── Loader
    │   ├── Mode
    │   └── Subscribe
    ├── Pages
    │   ├── 404
    │   └── Index
    ├── Posts
    ├── templates
    │   └── blog
    └── Context

License

The MIT License (MIT)

Copyright (c) 2020 Chetan Kumar