Skip to content

Commit 0aeff01

Browse files
author
Sagar Jain
committed
feat: changed layout on all pages to include sidebar with widgetsgets
1 parent ceedade commit 0aeff01

File tree

204 files changed

+832
-14194
lines changed

Some content is hidden

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

204 files changed

+832
-14194
lines changed

.env.development

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ GATSBY_PRIMARY_ACCENT_COLOR=#0047E0
1212
GATSBY_INSTAGRAM_SOURCE=gatsbyjs
1313
GATSBY_TWITTER_SOURCE=gatsbyjs
1414
GATSBY_FACEBOOK_SOURCE=react
15-
GATSBY_GOOGLE_ANALYTICS=my-tracking-id
15+
GATSBY_GOOGLE_ANALYTICS=my-tracking-id
16+
GATSBY_STATICMAN_BASE=https://dev.staticman.net/v3/entry/github

.env.production

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ GATSBY_PRIMARY_ACCENT_COLOR=#0047E0
1212
GATSBY_INSTAGRAM_SOURCE=gatsbyjs
1313
GATSBY_TWITTER_SOURCE=gatsbyjs
1414
GATSBY_FACEBOOK_SOURCE=react
15-
GATSBY_GOOGLE_ANALYTICS=my-tracking-id
15+
GATSBY_GOOGLE_ANALYTICS=my-tracking-id
16+
GATSBY_STATICMAN_BASE=https://api.staticman.net/v3/entry/github

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ Note: Do not include the `@` symbol here.
7878
- GATSBY_GOOGLE_ANALYTICS (Optional)
7979
This is your Google Analytics tracking id.
8080

81+
- GATSBY_STATICMAN_BASE (Optional)
82+
This is the base URL of the of your Staticman instance. You can use either the public Staticman instance or host your own.
83+
Note: This is required to enable comments on the website.
84+
8185
Note: Any new environment variables you want to define MUST have the `GATSBY_` prefix. You can access them using `process.env.GATSBY_MY_ENVIRONMENT_VARIABLE`. Also, `process.env` object cannot be de-structured. To access any variable from this object, use the full variable name.
8286

8387
For example, the following code will NOT work.
@@ -217,12 +221,16 @@ Once you have defined the mandatory environment variables mentioned above, and h
217221

218222
If you face any issues while working with this Gatsby starter template, feel free to create a new issue [here](https://github.com/sagar7993/gatsby-wordpress-typescript-scss-blog/issues). Please check if there's any existing similar issue already created before creating a new one.
219223

220-
## Contribute
221-
222-
Fork this repo and make a PR.
223-
224224
## 💫 Deploy
225225

226226
Deploy your Gatsby site to Netlify using this Gatsby starter template by clicking on the `Deploy to netlify` button below.
227227

228228
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/sagar7993/gatsby-wordpress-typescript-scss-blog)
229+
230+
## Contribute
231+
232+
Fork this repo and make a PR.
233+
234+
## License
235+
236+
This project is licensed under the [MIT License](https://github.com/sagar7993/gatsby-wordpress-typescript-scss-blog/blob/master/LICENSE) - see the LICENCE.md file for details

gatsby-config.js

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,24 @@ module.exports = {
77
title: `${process.env.GATSBY_SITE_NAME}`,
88
description: `${process.env.GATSBY_SITE_DESCRIPTION}`,
99
author: `@${process.env.GATSBY_SITE_AUTHOR}`,
10-
siteUrl: `${process.env.GATSBY_SITE_URL_PROTOCOL}://${process.env.GATSBY_SITE_URL_PATH}`
10+
siteUrl: `${process.env.GATSBY_SITE_URL_PROTOCOL}://${process.env.GATSBY_SITE_URL_PATH}`,
11+
social: {
12+
twitter: 'https://www.twitter.com/sagar7993',
13+
facebook: 'https://www.facebook.com/sagar7993',
14+
email: 'sagar7993@gmail.com',
15+
linkedin: 'https://www.linkedin.com/in/sagar-jain-006074a1',
16+
github: 'https://www.github.com/sagar7993'
17+
}
1118
},
1219
plugins: [
1320
'gatsby-plugin-typescript',
21+
{
22+
resolve: 'gatsby-plugin-tslint',
23+
options: {
24+
test: /\.ts$|\.tsx$/,
25+
exclude: /(node_modules|cache|public)/
26+
}
27+
},
1428
'gatsby-plugin-react-helmet',
1529
{
1630
resolve: 'gatsby-source-filesystem',
@@ -33,6 +47,7 @@ module.exports = {
3347
icon: 'src/images/logo.png'
3448
},
3549
},
50+
'gatsby-plugin-catch-links',
3651
{
3752
resolve: 'gatsby-source-wordpress',
3853
options: {
@@ -110,7 +125,7 @@ module.exports = {
110125
{
111126
resolve: `gatsby-plugin-pinterest-twitter-facebook`,
112127
options: {
113-
delayTimer: 1000,
128+
delayTimer: 100,
114129
pinterest: {
115130
enable: true,
116131
tall: true,
@@ -136,8 +151,8 @@ module.exports = {
136151
enable: true,
137152
containerSelector: '.facebook-container',
138153
profile: process.env.GATSBY_FACEBOOK_SOURCE,
139-
width: 340,
140-
height: 500,
154+
// width: 340,
155+
// height: 500,
141156
tabs: 'timeline, events, messages',
142157
hideCover: false,
143158
showFacepile: true,

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"gatsby-paginate": "^1.0.0",
4545
"gatsby-plugin-advanced-sitemap": "^1.0.0",
4646
"gatsby-plugin-antd": "^2.0.0",
47+
"gatsby-plugin-catch-links": "^2.1.13",
4748
"gatsby-plugin-google-analytics": "^2.0.0",
4849
"gatsby-plugin-import": "^2.0.0",
4950
"gatsby-plugin-manifest": "^2.0.0",
@@ -78,11 +79,13 @@
7879
"dotenv": "^8.0.0",
7980
"enzyme": "^3.0.0",
8081
"enzyme-adapter-react-16": "^1.0.0",
82+
"gatsby-plugin-tslint": "^0.0.2",
8183
"husky": "^3.0.0",
8284
"node-sass": "^4.0.0",
8385
"react-test-renderer": "^16.0.0",
8486
"source-map-explorer": "^2.0.0",
85-
"tslint": "^5.0.0",
87+
"tslint": "^5.20.0",
88+
"tslint-loader": "^3.5.4",
8689
"tslint-react": "^4.0.0",
8790
"typescript": "^3.0.0"
8891
},

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-4cd965010a19c0287d09.js

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

public/app-4cd965010a19c0287d09.js.map

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

0 commit comments

Comments
 (0)