File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ const site = require('./src/_data/site.json');
2121// Import markdown-lib
2222const markdownLib = require ( './src/utils/markdown-lib' ) ;
2323
24+ // for youtube embed
25+ const embedYouTube = require ( "eleventy-plugin-youtube-embed" ) ;
26+
2427module . 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" ) {
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments