Skip to content

Commit 2e9a38b

Browse files
LekoArtsgatsbybot
and
gatsbybot
authored
feat(gatsby-starter-blog): Remove typography.js (#27001)
Co-authored-by: gatsbybot <[email protected]>
1 parent 5d39594 commit 2e9a38b

File tree

14 files changed

+991
-383
lines changed

14 files changed

+991
-383
lines changed

starters/blog/content/blog/hello-world/index.md

Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,212 @@ Oh, and here's a great quote from this Wikipedia on
2020
> firm-textured, round yolk that is bright orange-red in color.
2121
2222
![Chinese Salty Egg](./salty_egg.jpg)
23+
24+
You can also write code blocks here!
25+
26+
```js
27+
const saltyDuckEgg = "chinese preserved food product"
28+
```
29+
30+
| Number | Title | Year |
31+
| :----- | :--------------------------------------- | ---: |
32+
| 1 | Harry Potter and the Philosopher’s Stone | 2001 |
33+
| 2 | Harry Potter and the Chamber of Secrets | 2002 |
34+
| 3 | Harry Potter and the Prisoner of Azkaban | 2004 |
35+
36+
[View raw (TEST.md)](https://raw.github.com/adamschwartz/github-markdown-kitchen-sink/master/README.md)
37+
38+
This is a paragraph.
39+
40+
This is a paragraph.
41+
42+
# Header 1
43+
44+
## Header 2
45+
46+
Header 1
47+
========
48+
49+
Header 2
50+
--------
51+
52+
# Header 1
53+
54+
## Header 2
55+
56+
### Header 3
57+
58+
#### Header 4
59+
60+
##### Header 5
61+
62+
###### Header 6
63+
64+
# Header 1
65+
## Header 2
66+
### Header 3
67+
#### Header 4
68+
##### Header 5
69+
###### Header 6
70+
71+
# Header 1
72+
73+
## Header 2
74+
75+
### Header 3
76+
77+
#### Header 4
78+
79+
##### Header 5
80+
81+
###### Header 6
82+
83+
# Header 1 #
84+
## Header 2 ##
85+
### Header 3 ###
86+
#### Header 4 ####
87+
##### Header 5 #####
88+
###### Header 6 ######
89+
90+
> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
91+
92+
> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
93+
94+
> ## This is a header.
95+
>
96+
> 1. This is the first list item.
97+
> 2. This is the second list item.
98+
>
99+
> Here's some example code:
100+
>
101+
> Markdown.generate();
102+
103+
> ## This is a header.
104+
> 1. This is the first list item.
105+
> 2. This is the second list item.
106+
>
107+
> Here's some example code:
108+
>
109+
> Markdown.generate();
110+
111+
- Red
112+
- Green
113+
- Blue
114+
115+
* Red
116+
* Green
117+
* Blue
118+
119+
- Red
120+
- Green
121+
- Blue
122+
123+
```markdown
124+
- Red
125+
- Green
126+
- Blue
127+
128+
* Red
129+
* Green
130+
* Blue
131+
132+
- Red
133+
- Green
134+
- Blue
135+
```
136+
137+
- `code goes` here in this line
138+
- **bold** goes here
139+
140+
```markdown
141+
- `code goes` here in this line
142+
- **bold** goes here
143+
```
144+
145+
1. Buy flour and salt
146+
1. Mix together with water
147+
1. Bake
148+
149+
```markdown
150+
1. Buy flour and salt
151+
1. Mix together with water
152+
1. Bake
153+
```
154+
155+
1. `code goes` here in this line
156+
1. **bold** goes here
157+
158+
```markdown
159+
1. `code goes` here in this line
160+
1. **bold** goes here
161+
```
162+
163+
Paragraph:
164+
165+
Code
166+
167+
<!-- -->
168+
169+
Paragraph:
170+
171+
Code
172+
173+
---
174+
175+
---
176+
177+
---
178+
179+
---
180+
181+
---
182+
183+
* * *
184+
185+
***
186+
187+
*****
188+
189+
- - -
190+
191+
---------------------------------------
192+
193+
This is [an example](http://example.com "Example") link.
194+
195+
[This link](http://example.com) has no title attr.
196+
197+
This is [an example][id] reference-style link.
198+
199+
[id]: http://example.com "Optional Title"
200+
201+
This is [an example](http://example.com "Example") link.
202+
203+
[This link](http://example.com) has no title attr.
204+
205+
This is [an example] [id] reference-style link.
206+
207+
[id]: http://example.com "Optional Title"
208+
209+
_single asterisks_
210+
211+
_single underscores_
212+
213+
**double asterisks**
214+
215+
**double underscores**
216+
217+
*single asterisks*
218+
219+
_single underscores_
220+
221+
**double asterisks**
222+
223+
__double underscores__
224+
225+
This paragraph has some `code` in it.
226+
227+
This paragraph has some `code` in it.
228+
229+
![Alt Text](https://placehold.it/200x50 "Image Title")
230+
231+
![Alt Text](https://placehold.it/200x50 "Image Title")

starters/blog/gatsby-browser.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
// custom typefaces
22
import "typeface-montserrat"
33
import "typeface-merriweather"
4+
// normalize CSS across browsers
5+
import "./src/normalize.css"
6+
// custom CSS styles
7+
import "./src/style.css"
48

9+
// Highlighting for code blocks
510
import "prismjs/themes/prism.css"

starters/blog/gatsby-config.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = {
3333
{
3434
resolve: `gatsby-remark-images`,
3535
options: {
36-
maxWidth: 590,
36+
maxWidth: 630,
3737
},
3838
},
3939
{
@@ -70,12 +70,6 @@ module.exports = {
7070
},
7171
},
7272
`gatsby-plugin-react-helmet`,
73-
{
74-
resolve: `gatsby-plugin-typography`,
75-
options: {
76-
pathToConfigModule: `src/utils/typography`,
77-
},
78-
},
7973
// this (optional) plugin enables Progressive Web App + Offline functionality
8074
// To learn more, visit: https://gatsby.dev/offline
8175
// `gatsby-plugin-offline`,

starters/blog/gatsby-node.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
2929
)
3030

3131
if (result.errors) {
32-
reporter.panicOnBuild(`There was an error loading your blog posts`, result.errors)
32+
reporter.panicOnBuild(
33+
`There was an error loading your blog posts`,
34+
result.errors
35+
)
3336
return
3437
}
3538

0 commit comments

Comments
 (0)