-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
103 changed files
with
3,538 additions
and
7,640 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
* preload at top of page for resources ala flipkart | ||
* marketing points — cost of aquisition, boosts from switching | ||
to PWA. | ||
* sites to copy — NASA website + polymer shop but for Packard cars | ||
* On GraphQL errors — print the query plus where it came from and give | ||
them the link to debug it in GraphiQL | ||
* AggressiveSplitPlugin — limit max chunk size to 250kb. | ||
* SW render-dom-stream and stream HTML to browser. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
new SourceDirectory({ | ||
parsers: [ | ||
{ | ||
typeName: 'blogPosts', | ||
plugin: 'gatsby-source-markdown', | ||
selector: '(*.md|*.markdown}', | ||
}, | ||
{ | ||
typeName: '', | ||
plugin: 'gatsby-source-markdown', | ||
selector: '(*.md|*.markdown}', | ||
}, | ||
] | ||
}) | ||
|
||
Just copy Jekyll? | ||
|
||
/content -> markdown | ||
/data -> yaml, csv, toml, json | ||
|
||
With each parsers already setup. For data, the default is that each data | ||
file is it's own type derived from the name of the file. | ||
|
||
So file sources that have many things in one file — type === fileName | ||
For file sources where each thing is a file — type is directory based. | ||
|
||
Look by default for pages in /pages | ||
but this is again just a plugin so you can add other directory sources | ||
if desired. | ||
|
||
composable themes? So have a base gatsby theme that has this minimal | ||
jekyll-esque setup? | ||
|
||
Other themes can build on top of it or of course there could be other | ||
base themes. |
Oops, something went wrong.