Skip to content

Commit 5b121a5

Browse files
authored
Merge pull request #118 from hhatto/youtube-preview
feature: youtube preview
2 parents 863b8d0 + a6668db commit 5b121a5

3 files changed

Lines changed: 47 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-lock.json

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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": "^1.0.0",
1415
"json-to-scss": "^1.5.0",

0 commit comments

Comments
 (0)