Commit Graph

88 Commits

Author SHA1 Message Date
Alexander Shelepenok
bf8a726f79
Merge pull request #94 from vzhou842/isIndex
Add isIndex prop to Sidebar in index-template
2019-02-13 22:55:41 +03:00
Victor Zhou
1a81d54db5 Add isIndex prop to Sidebar component in index-template 2019-02-10 12:56:12 -05:00
Alexander Shelepenok
7f6713044e
Merge pull request #99 from vzhou842/html-lang
Add lang="en" to <html>
2019-02-10 09:54:12 +03:00
Victor Zhou
5d2fbb3f58 Add lang="en" to <html> 2019-02-09 17:50:54 -05:00
alxshelepenok
9d3cdcbe01 Remove body margin 2019-02-09 16:28:37 +03:00
alxshelepenok
1ac51111f7 Autoscrolling on mobile devices 2019-02-09 15:54:31 +03:00
Victor Zhou
4b3eeae699 Fixed url prop bug for <ReactDisqusComments /> 2019-02-07 15:08:12 -05:00
Victor Zhou
3e9a1a4230 Removed .gatsby-highlight selectors 2019-02-04 17:35:56 -05:00
alxshelepenok
dd96057494 Fix error when disqus shortname is empty 2019-01-24 20:44:13 +03:00
alxshelepenok
7fe055d94e Fix eslint errors 2019-01-21 17:18:15 +03:00
alxshelepenok
79d6093b7b Fix image size 2019-01-21 15:46:01 +03:00
alxshelepenok
1a7deacd3f Fix Netlify CMS templates 2019-01-21 15:32:18 +03:00
alxshelepenok
bd0677dfd3 Fix preview templates 2018-11-13 17:14:46 +03:00
alxshelepenok
913da4453b Update snapshots 2018-11-11 23:43:22 +03:00
alxshelepenok
5272e4052e Fix slugs 2018-11-11 23:40:08 +03:00
alxshelepenok
440d4e88c7 Change frontmatter fields 2018-11-11 19:32:51 +03:00
alxshelepenok
55e877a81b Update tests 2018-11-11 14:51:07 +03:00
alxshelepenok
cca1567f16 Update button styles 2018-11-11 14:45:46 +03:00
alxshelepenok
ffbe3e2c4f Fix lint issues 2018-11-11 14:23:45 +03:00
alxshelepenok
338317803e Add pagination 2018-11-11 14:19:06 +03:00
alxshelepenok
38090a3a0f Update tests 2018-11-09 23:03:28 +03:00
alxshelepenok
4cc45f66da Move author photo to config 2018-11-09 22:20:44 +03:00
alxshelepenok
8b92891329 Upgrade to Gatsby v2 2018-11-09 20:08:48 +03:00
Yanda Huang
2ceac61daf Try fix the new line format again 2018-05-06 15:48:03 -04:00
Yanda Huang
448541831f Fix format 2018-05-06 15:43:52 -04:00
Yanda Huang
1dd12522e5 Refactor duplicate GraphQL to Fragment, eliminate all the spread syntax 2018-05-06 15:32:25 -04:00
ybbarng
1995b25ba3
Get siteMetadata via GraphQL
It is important that decoupling between node code and browser code.
The 'gatsby-config.js' file must be kept in node code, but it exposed
into browser code because of the Disqus module.
To decouple this, all of the siteMetadata information is served via
GraphQL.
This commit has this change.
2018-02-06 17:45:30 +09:00
Nilan Marktanner
7c696b3da2 Fixed two typos. 2018-02-03 19:09:59 +01:00
Nilan Marktanner
6a9e8e8641
fix twitter link in post details 2018-01-30 19:39:56 +01:00
wpioneer
9cf753b94b Added Google Fonts support 2018-01-21 18:54:33 +03:00
wpioneer
35d5d7c244 New version 2018-01-21 03:03:59 +03:00
Alexander Shelepenok
b5daed447e
Merge pull request #43 from marcelabomfim/master
Disqus support
2017-10-30 19:15:44 +02:00
Alexander Shelepenok
4ad32fb854
Merge pull request #45 from ybbarng/master
Fixes a crash when a post has no tag
2017-10-30 17:57:38 +02:00
Alexander Shelepenok
498d871326
Merge branch 'master' into master 2017-10-30 17:48:08 +02:00
ybbarng
d207f68e43
Fixes a crash when a post has no tag
This commit avoids undefined.map() or null.map() is calling.

When there is no tag in a post, there are two cases in frontmatter.

1)
title: title
categories: Technical
...

2)
title: title
tags:
categories: Technical
...

Let's look at `post.node.frontmatter.tags` in both situations.
`FILE1 = /gatsby-node.js`
`FILE2 = /src/components/PostTemplateDetails/index.jsx`

In the first case, it is `undefined` in `FILE1`.
Cheking `undefined` is already implemented at FILE1#126, so undefined.map()
is not called.
But it is `null` in `FILE2#22`
and a crash will be occurred because it tries to run `null.map()`.

In the second case, it is `null` in `FILE1` and `FILE2`.
In this case, there will be two crashes in both files because both codes
try to run `null.map()`.

This commit avoids these crashes.
2017-10-30 23:25:49 +09:00
Marcela Bomfim
a0fcc33115 Adding Disqus comments on post template 2017-10-10 11:53:14 -03:00
william chou
e0b3792288 Fix hrefs for github, twitter and vk links in Links component. 2017-09-13 23:47:56 -04:00
wpioneer
a2f8738ea6 🔖 Upgrade to Gatsby 1.8.12 2017-08-20 14:43:49 +03:00