Skip to content

Commit e366af8

Browse files
author
Sagar Jain
committed
feat: updated features on home page template
1 parent 8408a6e commit e366af8

File tree

130 files changed

+288
-12453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+288
-12453
lines changed

README.md

Lines changed: 110 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,145 @@
1-
<!-- AUTO-GENERATED-CONTENT:START (STARTER) -->
2-
<p align="center">
3-
<a href="https://www.gatsbyjs.org">
4-
<img alt="Gatsby" src="https://www.gatsbyjs.org/monogram.svg" width="60" />
5-
</a>
6-
</p>
7-
<h1 align="center">
8-
Gatsby's hello-world starter
9-
</h1>
1+
# Yellowcake
102

11-
Kick off your project with this hello-world boilerplate. This starter ships with the main Gatsby configuration files you might need to get up and running blazing fast with the blazing fast app generator for React.
3+
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
4+
[![dependencies](https://david-dm.org/jinksi/netlify-cms-react-starter.svg?style=flat-square)](https://david-dm.org/jinksi/gatsbro)
125

13-
_Have another more specific idea? You may want to check out our vibrant collection of [official and community-created starters](https://www.gatsbyjs.org/docs/gatsby-starters/)._
6+
An opinionated starter project for creating lightning-fast websites with [Gatsby](https://gatsbyjs.org) v2 and [Netlify CMS](https://netlifycms.org) v2.
147

15-
## 🚀 Quick start
8+
- **[Gatsby](https://gatsbyjs.org)** static site generator
9+
- **[Netlify CMS](https://github.com/netlify/netlify-cms)** for content management
1610

17-
1. **Create a Gatsby site.**
11+
## See also
1812

19-
Use the Gatsby CLI to create a new site, specifying the hello-world starter.
13+
[Netlify CMS Docs](https://www.netlifycms.org/docs/)
14+
[Netlify CMS Repo](https://github.com/netlify/netlify-cms)
2015

21-
```sh
22-
# create a new Gatsby site using the hello-world starter
23-
gatsby new my-hello-world-starter https://github.com/gatsbyjs/gatsby-starter-hello-world
24-
```
16+
## Get going
2517

26-
1. **Start developing.**
18+
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/thriveweb/yellowcake&stack=cms)
2719

28-
Navigate into your new site’s directory and start it up.
20+
1. Hit the **Deploy to Netlify** button. This will:
2921

30-
```sh
31-
cd my-hello-world-starter/
32-
gatsby develop
33-
```
22+
- Clone the repo into your Github account
23+
- Create you a new project on Netlify, build & deploy
3424

35-
1. **Open the source code and start editing!**
25+
1. Once your Netlify project has been created, check a couple of settings:
3626

37-
Your site is now running at `http://localhost:8000`!
27+
- Enable **Identity**
28+
- Change **Registration Preferences** to **Invite Only**
29+
- Enable **Git Gateway**
3830

39-
_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](https://www.gatsbyjs.org/tutorial/part-five/#introducing-graphiql)._
31+
1. Invite users (probably yourself) to enable admin access
4032

41-
Open the `my-hello-world-starter` directory in your code editor of choice and edit `src/pages/index.js`. Save your changes and the browser will update in real time!
33+
- Open the **Identity** tab and hit **Invite Users**
4234

43-
## 🧐 What's inside?
35+
## Show me the CMS!
4436

45-
A quick look at the top-level files and directories you'll see in a Gatsby project.
37+
The CMS lives at [\_\_YOUR_SITE_NAME\_\_.netlify.com/admin](https://__YOUR_SITE_NAME__.netlify.com/admin).
4638

47-
.
48-
├── node_modules
49-
├── src
50-
├── .gitignore
51-
├── .prettierrc
52-
├── gatsby-browser.js
53-
├── gatsby-config.js
54-
├── gatsby-node.js
55-
├── gatsby-ssr.js
56-
├── LICENSE
57-
├── package-lock.json
58-
├── package.json
59-
└── README.md
39+
## Developing
6040

61-
1. **`/node_modules`**: This directory contains all of the modules of code that your project depends on (npm packages) are automatically installed.
41+
1. Clone your repo to your local machine
6242

63-
2. **`/src`**: This directory will contain all of the code related to what you will see on the front-end of your site (what you see in the browser) such as your site header or a page template. `src` is a convention for “source code”.
43+
1. Install dependencies
6444

65-
3. **`.gitignore`**: This file tells git which files it should not track / not maintain a version history for.
45+
`yarn` or `npm install`
6646

67-
4. **`.prettierrc`**: This is a configuration file for [Prettier](https://prettier.io/). Prettier is a tool to help keep the formatting of your code consistent.
47+
1. Run the development server
6848

69-
5. **`gatsby-browser.js`**: This file is where Gatsby expects to find any usage of the [Gatsby browser APIs](https://www.gatsbyjs.org/docs/browser-apis/) (if any). These allow customization/extension of default Gatsby settings affecting the browser.
49+
`yarn start` or `npm run start`
7050

71-
6. **`gatsby-config.js`**: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you’d like to include, etc. (Check out the [config docs](https://www.gatsbyjs.org/docs/gatsby-config/) for more detail).
51+
If you are adding or editing content locally in the CMS, a couple of things to note:
7252

73-
7. **`gatsby-node.js`**: This file is where Gatsby expects to find any usage of the [Gatsby Node APIs](https://www.gatsbyjs.org/docs/node-apis/) (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process.
53+
1. Changes will be pushed to the remote repo.
7454

75-
8. **`gatsby-ssr.js`**: This file is where Gatsby expects to find any usage of the [Gatsby server-side rendering APIs](https://www.gatsbyjs.org/docs/ssr-apis/) (if any). These allow customization of default Gatsby settings affecting server-side rendering.
55+
1. You will be prompted to enter your site's url, this is necessary for Netlify Identity to manage user login. This is stored in `localStorage`, so you might have to empty your browser cache if you are switching projects but remaining on `localhost:8000`.
7656

77-
9. **`LICENSE`**: Gatsby is licensed under the MIT license.
57+
## Editing CMS fields
7858

79-
10. **`package-lock.json`** (See `package.json` below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. **(You won’t change this file directly).**
59+
The Netlify CMS configuration is located in `public/admin/config.yml`. This is where you will configure the pages, fields, posts and settings that are editable by the CMS.
8060

81-
11. **`package.json`**: A manifest file for Node.js projects, which includes things like metadata (the project’s name, author, etc). This manifest is how npm knows which packages to install for your project.
61+
Find out more in the [Netlify CMS Docs](https://www.netlifycms.org/docs/#configuration).
8262

83-
12. **`README.md`**: A text file containing useful reference information about your project.
63+
## Uploadcare setup
8464

85-
## 🎓 Learning Gatsby
65+
Uploadcare is our file upload system. It hosts the files for us and delivers them trough their CDN network.
66+
Each site you'll create need its own Uploadcare API key's. See below how to set this up
8667

87-
Looking for more guidance? Full documentation for Gatsby lives [on the website](https://www.gatsbyjs.org/). Here are some places to start:
68+
1. Create new project in Uploadcare and save API keys in project
8869

89-
- **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://www.gatsbyjs.org/tutorial/).** It starts with zero assumptions about your level of ability and walks through every step of the process.
70+
- Go to [Uploadcare.com](https://uploadcare.com/accounts/login/) and login
71+
- Once on the dashboard create a new project
72+
- Set the name and hit create
73+
- In the left menu click in API Keys and copy the public key
74+
- Now open your project and open the CMS congif.yml file
75+
- find the `media_library` settings and paste in the public key after `publicKey:`
76+
- Done!!
9077

91-
- **To dive straight into code samples, head [to our documentation](https://www.gatsbyjs.org/docs/).** In particular, check out the _Guides_, _API Reference_, and _Advanced Tutorials_ sections in the sidebar.
78+
For more details see the [Netlify CMS Docs](https://www.netlifycms.org/docs/uploadcare/)
79+
80+
## Scheduled content
81+
82+
Scheduled content allows you to schedule posts. Set the date / order field in a post to the feature.
83+
For the scheduled content to appear on the website we need to deploy our website daily.
84+
85+
1. Setup a Netlify build hook
86+
87+
- Go to https://app.netlify.com/sites/_YOUR_SITE_NAME/setings/deploys/#build-hooks
88+
- Hit build hook button in the build hooks section
89+
- Give it a name for example: "Automatic deploy Zapier"
90+
- Select branch, in most cases master will do.
91+
- Hit save and copy the generated url
92+
93+
2. Zapier Setup
94+
95+
- Go to [Zapier.com](https://zapier.com/) and login
96+
- Hit make a zap button in the right top corner
97+
- Search for Schedule in the search bar and select "Schedule by Zapier"
98+
- Check every day and hit continue
99+
- Select a time and make sure trigger on weekends is turned on
100+
- Double check your settings and hit continue
101+
- On the left hit add a step - and search for webhook by Zapier
102+
- Select post as action and continue
103+
- Past in the url of our recently generated webhook in the url field
104+
- Make sure "Payload Type" is set to form and hit continue
105+
- check settings and hit the test button
106+
- Check your Netlify site if there has been triggered a new deploy
107+
- If that worked hit finish
108+
- Give your zap a name, example: "Automatic deploy Yellowcake" and make sure your zap is turned on
109+
110+
That's it, you'r now ready to use scheduled content!!
111+
112+
## Mailchimp integration
113+
114+
https://hooks.zapier.com/hooks/catch/2881617/ea5exg/
115+
116+
- Go to [Zapier.com](https://zapier.com/) and login
117+
- Hit make a zap button in the right top corner
118+
- Search for webhook by Zapier and select catch hook and continue to next step
119+
- In most cases leave this field empty and continue
120+
- Copy the generated url
121+
- Now go to the [form settings](https://app.netlify.com/sites/yellowcake/settings/forms#outgoing-notifications) in you Netlify project
122+
- Find the form notifications section click the add notification button
123+
- Select the option `outgoing webhook`
124+
- Set the event to listen for
125+
- Paste in our recent generated url in the URL to notify field
126+
- Select your form and save settings
127+
- Open your website navigate to your form, fill it out and send the data
128+
- Go back to Zaper and see if your form data has come trough.
129+
- Hit continue and add a new step on the left side of the screen
130+
- Search for MailChimp and select add/update subscriber
131+
- Select MailChimp account or add one and hit the test button
132+
- if succeeded hit continue button
133+
- Select your MailChimp list and select the subscriber email address
134+
- Fill in other settings for your needs and continue
135+
- Hit send test to MailChimp button and hit finish if succeeded
136+
- Give your Zap a name and make sure your zap is turned on
137+
- Submit your form one last time and see if all data is coming trough to MailChimp
138+
- Thats is!
139+
140+
## Instagram Feed
141+
142+
Get Your Instagram Access Token [here](https://generator.thrivex.io/). In order to display your Instagram photos on your own website, you are required to provide an Instagram Access Token. You can do this by clicking the generator button on this site you will first need to login to your account.
92143

93144
## 💫 Deploy
94145

commitlint.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

package.json

Lines changed: 75 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,33 @@
11
{
22
"name": "gatsby-wordpress-typescript-blog-boilerplate",
3-
"private": true,
43
"description": "A starter Gatsby template for a Wordpress blog, built using Typescript and Ant Design",
5-
"version": "0.1.0",
4+
"version": "1.0.0",
5+
"author": "Sagar Jain <[email protected]>",
6+
"bugs": {
7+
"url": "https://github.com/sagar7993/gatsby-wordpress-typescript-blog-boilerplate/issues"
8+
},
9+
"homepage": "https://github.com/sagar7993/gatsby-wordpress-typescript-blog-boilerplate",
10+
"keywords": [
11+
"gatsby",
12+
"gatsby-starter",
13+
"gatsby-starter-template",
14+
"gatsby-typescript",
15+
"gatsby-social-widgets",
16+
"gatsby-pinterest",
17+
"gatsby-twitter",
18+
"gatsby-facebook",
19+
"social-widgets",
20+
"pinterest-widget",
21+
"pinterest-save",
22+
"facebook-widget",
23+
"facebook-like-button",
24+
"facebook-profile",
25+
"facebook-timeline",
26+
"twitter-widget",
27+
"twitter-follow-button",
28+
"twitter-profile",
29+
"twitter-timeline"
30+
],
631
"license": "MIT",
732
"scripts": {
833
"build": "npm run purgeCache && npm run lint && gatsby build",
@@ -14,61 +39,57 @@
1439
"purgeDependencies": "rm -rf node_modules && rm -rf yarn.lock rm -rf package-lock.json && npm install"
1540
},
1641
"dependencies": {
17-
"antd": "3.23.3",
18-
"axios": "0.19.0",
19-
"gatsby": "2.15.20",
20-
"gatsby-image": "2.2.20",
21-
"gatsby-paginate": "1.1.1",
22-
"gatsby-plugin-advanced-sitemap": "1.4.4",
23-
"gatsby-plugin-antd": "2.0.2",
24-
"gatsby-plugin-google-analytics": "2.1.17",
25-
"gatsby-plugin-import": "2.1.5",
26-
"gatsby-plugin-manifest": "2.2.18",
27-
"gatsby-plugin-offline": "3.0.8",
28-
"gatsby-plugin-pinterest-twitter-facebook": "1.0.9",
29-
"gatsby-plugin-react-helmet": "3.1.8",
30-
"gatsby-plugin-robots-txt": "1.5.0",
31-
"gatsby-plugin-sass": "2.1.15",
32-
"gatsby-plugin-sharp": "2.2.25",
33-
"gatsby-plugin-typescript": "2.1.9",
34-
"gatsby-source-filesystem": "2.1.26",
35-
"gatsby-source-instagram": "0.5.1",
36-
"gatsby-source-twitter": "3.0.0",
37-
"gatsby-source-wordpress": "3.1.35",
38-
"gatsby-transformer-sharp": "2.2.16",
39-
"gatsby-transformer-yaml": "2.2.10",
40-
"gatsby-wordpress-inline-images": "1.0.0",
41-
"path": "0.12.7",
42-
"react": "16.9.0",
43-
"react-dom": "16.9.0",
44-
"react-helmet": "5.2.1"
42+
"antd": "^3.0.0",
43+
"axios": "^0.1.0",
44+
"gatsby": "^2.0.0",
45+
"gatsby-image": "^2.0.0",
46+
"gatsby-paginate": "^1.0.0",
47+
"gatsby-plugin-advanced-sitemap": "^1.0.0",
48+
"gatsby-plugin-antd": "^2.0.0",
49+
"gatsby-plugin-google-analytics": "^2.0.0",
50+
"gatsby-plugin-import": "^2.0.0",
51+
"gatsby-plugin-manifest": "^2.0.0",
52+
"gatsby-plugin-offline": "^3.0.0",
53+
"gatsby-plugin-pinterest-twitter-facebook": "^1.0.0",
54+
"gatsby-plugin-react-helmet": "^3.0.0",
55+
"gatsby-plugin-robots-txt": "^1.0.0",
56+
"gatsby-plugin-sass": "^2.0.0",
57+
"gatsby-plugin-sharp": "^2.0.0",
58+
"gatsby-plugin-typescript": "^2.0.0",
59+
"gatsby-source-filesystem": "^2.0.0",
60+
"gatsby-source-instagram": "^0.0.1",
61+
"gatsby-source-wordpress": "^3.0.0",
62+
"gatsby-transformer-sharp": "^2.0.0",
63+
"gatsby-transformer-yaml": "^2.0.0",
64+
"gatsby-wordpress-inline-images": "^1.0.0",
65+
"path": "^0.12.7",
66+
"react": "^16.0.0",
67+
"react-dom": "^16.0.0",
68+
"react-helmet": "^5.0.0"
4569
},
4670
"devDependencies": {
47-
"@commitlint/cli": "8.2.0",
48-
"@commitlint/config-conventional": "8.2.0",
49-
"@types/enzyme": "3.10.3",
50-
"@types/enzyme-adapter-react-16": "1.0.5",
51-
"@types/jest": "24.0.18",
52-
"@types/node": "12.7.5",
53-
"@types/react": "16.9.2",
54-
"@types/react-dom": "16.9.0",
55-
"@types/react-helmet": "5.0.10",
56-
"@types/react-test-renderer": "16.9.0",
57-
"babel-plugin-import": "1.12.1",
58-
"dotenv": "8.1.0",
59-
"enzyme": "3.10.0",
60-
"enzyme-adapter-react-16": "1.14.0",
61-
"husky": "3.0.5",
62-
"node-sass": "4.12.0",
63-
"react-test-renderer": "16.9.0",
64-
"source-map-explorer": "2.0.1",
65-
"tslint": "5.20.0",
66-
"tslint-react": "4.1.0",
67-
"typescript": "3.6.3"
71+
"@types/enzyme": "^3.0.0",
72+
"@types/enzyme-adapter-react-16": "^1.0.0",
73+
"@types/jest": "^24.0.0",
74+
"@types/node": "^12.0.0",
75+
"@types/react": "^16.0.0",
76+
"@types/react-dom": "^16.0.0",
77+
"@types/react-helmet": "^5.0.0",
78+
"@types/react-test-renderer": "^16.0.0",
79+
"babel-plugin-import": "^1.0.0",
80+
"dotenv": "^8.0.0",
81+
"enzyme": "^3.0.0",
82+
"enzyme-adapter-react-16": "^1.0.0",
83+
"husky": "^3.0.0",
84+
"node-sass": "^4.0.0",
85+
"react-test-renderer": "^16.0.0",
86+
"source-map-explorer": "^2.0.0",
87+
"tslint": "^5.0.0",
88+
"tslint-react": "^4.0.0",
89+
"typescript": "^3.0.0"
6890
},
6991
"husky": {
7092
"hooks": {
71-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
7293
"pre-commit": "npm run lint",
7394
"pre-push": "npm run build && git add public && git commit -m 'fix: updated public folder'"
7495
}
@@ -78,5 +99,6 @@
7899
"not dead",
79100
"not ie <= 11",
80101
"not op_mini all"
81-
]
102+
],
103+
"repository": "https://github.com/sagar7993/gatsby-wordpress-typescript-blog-boilerplate"
82104
}

public/404.html

Lines changed: 0 additions & 17 deletions
This file was deleted.

public/404/index.html

Lines changed: 0 additions & 17 deletions
This file was deleted.

public/about/index.html

Lines changed: 0 additions & 89 deletions
This file was deleted.

public/app-d828ca465d695398c140.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

public/app-d828ca465d695398c140.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/chunk-map.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/commons-f1f232e4e4422943d64e.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)