Skip to content

Commit 57c6f0a

Browse files
committed
Adds gatsby-remark-embedder to the project, has config added to change the height of the videos when MichaelDeBoey/gatsby-remark-embedder#151 is merged.
1 parent fd8b375 commit 57c6f0a

File tree

4 files changed

+29
-3
lines changed

4 files changed

+29
-3
lines changed

content/blog/2016/09/making-simple-rts-game-week-two.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ I’ve come to realise some things are going to be more complicated than I antic
2424

2525
Here’s a crappy video of where we are so far:
2626

27-
[![Video of game functionality](https://img.youtube.com/vi/q2V6toXFCH0/0.jpg)](https://youtu.be/q2V6toXFCH0)
27+
https://youtu.be/q2V6toXFCH0
2828

2929
I’m unsure if I will have enough changes to do a Week 3 next week as I’m currently in the process of finding a new place to live in London and it’s a whole insane experience itself, very time consuming, very tiring and very depressing financially. So week 3 might be on the 23rd, we’ll see!

gatsby-config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ module.exports = {
3838
maxWidth: 850,
3939
},
4040
},
41+
{
42+
resolve: `gatsby-remark-embedder`,
43+
options: {
44+
services: {
45+
YouTube: {
46+
height: "350px",
47+
}
48+
},
49+
},
50+
},
4151
{
4252
resolve: `gatsby-remark-copy-linked-files`,
4353
},

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"gatsby-plugin-sass": "^2.3.22",
2222
"gatsby-plugin-sharp": "^2.6.43",
2323
"gatsby-remark-copy-linked-files": "^2.3.19",
24+
"gatsby-remark-embedder": "^4.0.0",
2425
"gatsby-remark-images": "^3.3.40",
2526
"gatsby-remark-smartypants": "^2.3.13",
2627
"gatsby-source-filesystem": "^2.3.37",

yarn.lock

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,7 +1589,7 @@
15891589
core-js-pure "^3.0.0"
15901590
regenerator-runtime "^0.13.4"
15911591

1592-
"@babel/runtime@^7.10.0", "@babel/runtime@^7.11.2":
1592+
"@babel/runtime@^7.10.0", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.1":
15931593
version "7.12.1"
15941594
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.1.tgz#b4116a6b6711d010b2dad3b7b6e43bf1b9954740"
15951595
integrity sha512-J5AIf3vPj3UwXaAzb5j1xM4WAQDX3EMgemF8rjCP3SoW09LfRKAXQKt6CoVYl230P6iWdRcBbnLDDdnqWxZSCA==
@@ -7055,6 +7055,11 @@ fd@~0.0.2:
70557055
resolved "https://registry.yarnpkg.com/fd/-/fd-0.0.3.tgz#b3240de86dbf5a345baae7382a07d4713566ff0c"
70567056
integrity sha512-iAHrIslQb3U68OcMSP0kkNWabp7sSN6d2TBSb2JO3gcLJVDd4owr/hKM4SFJovFOUeeXeItjYgouEDTMWiVAnA==
70577057

7058+
fetch-retry@^4.0.1:
7059+
version "4.0.1"
7060+
resolved "https://registry.yarnpkg.com/fetch-retry/-/fetch-retry-4.0.1.tgz#ca746666399aaf0547aa3851ccb543cfb112b8da"
7061+
integrity sha512-EhIeVBkq9T2z1ANDr2kmLujoHOTdLvR9t/nzLSdX4PMIFinLyyZFYX9T6Fb3LrbiHQEhujq1O7ElsqjuqYIsEA==
7062+
70587063
figgy-pudding@^3.5.1:
70597064
version "3.5.2"
70607065
resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.2.tgz#b4eee8148abb01dcf1d1ac34367d59e12fa61d6e"
@@ -7787,6 +7792,16 @@ gatsby-remark-copy-linked-files@^2.3.19:
77877792
probe-image-size "^5.0.0"
77887793
unist-util-visit "^1.4.1"
77897794

7795+
gatsby-remark-embedder@^4.0.0:
7796+
version "4.0.0"
7797+
resolved "https://registry.yarnpkg.com/gatsby-remark-embedder/-/gatsby-remark-embedder-4.0.0.tgz#ed0e2ddc669d21b4ba8e2cdffbd3f79aa5ee1102"
7798+
integrity sha512-nBVxhnuKcZZaibN6ipRKiAQibRcEJRBC6fuF2JW9op+W/uvgpqkaIzvH/JSKzESDQWX/eg+MnR8UAKsfR/6BKA==
7799+
dependencies:
7800+
"@babel/runtime" "^7.12.1"
7801+
fetch-retry "^4.0.1"
7802+
node-fetch "^2.6.1"
7803+
unist-util-visit "^2.0.3"
7804+
77907805
gatsby-remark-images@^3.3.40:
77917806
version "3.3.40"
77927807
resolved "https://registry.yarnpkg.com/gatsby-remark-images/-/gatsby-remark-images-3.3.40.tgz#da605c42de282225a1a133bbfb0aadbecaf47071"
@@ -16617,7 +16632,7 @@ unist-util-visit-parents@^3.0.0:
1661716632
"@types/unist" "^2.0.0"
1661816633
unist-util-is "^4.0.0"
1661916634

16620-
[email protected], unist-util-visit@^2.0.0, unist-util-visit@^2.0.2:
16635+
[email protected], unist-util-visit@^2.0.0, unist-util-visit@^2.0.2, unist-util-visit@^2.0.3:
1662116636
version "2.0.3"
1662216637
resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-2.0.3.tgz#c3703893146df47203bb8a9795af47d7b971208c"
1662316638
integrity sha512-iJ4/RczbJMkD0712mGktuGpm/U4By4FfDonL7N/9tATGIF4imikjOuagyMY53tnZq3NP6BcmlrHhEKAfGWjh7Q==

0 commit comments

Comments
 (0)