Skip to content

Commit 3b2a6ff

Browse files
committed
add youtube embed plugin and update config
1 parent 8bb6cf0 commit 3b2a6ff

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.eleventy.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const site = require('./src/_data/site.json');
2121
// Import markdown-lib
2222
const markdownLib = require('./src/utils/markdown-lib');
2323

24+
// for youtube embed
25+
const embedYouTube = require("eleventy-plugin-youtube-embed");
26+
2427
module.exports = function(config) {
2528
config.setLibrary("md", markdownLib)
2629

@@ -89,6 +92,7 @@ module.exports = function(config) {
8992
// Plugins
9093
config.addPlugin(rssPlugin);
9194
config.addPlugin(syntaxHighlight);
95+
config.addPlugin(embedYouTube);
9296

9397
/* Forestry instant previews
9498
if( process.env.ELEVENTY_ENV == "staging" ) {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.0",
1010
"@tbranyen/jsdom": "^13.0.0",
1111
"concurrently": "^4.1.2",
12+
"eleventy-plugin-youtube-embed": "^1.6.5",
1213
"html-minifier": "^4.0.0",
1314
"image-size": "^0.8.3",
1415
"json-to-scss": "^1.5.0",

0 commit comments

Comments
 (0)