Configure YouTube embed options
This commit is contained in:
parent
ae485771a2
commit
e51e754e59
@ -20,7 +20,15 @@ export default function(eleventyConfig) {
|
|||||||
eleventyConfig.addPlugin(pluginRss);
|
eleventyConfig.addPlugin(pluginRss);
|
||||||
eleventyConfig.addPlugin(pluginEleventyNavigation);
|
eleventyConfig.addPlugin(pluginEleventyNavigation);
|
||||||
eleventyConfig.addPlugin(pluginSyntaxHighlight, { preAttributes: { tabindex: 0 } });
|
eleventyConfig.addPlugin(pluginSyntaxHighlight, { preAttributes: { tabindex: 0 } });
|
||||||
eleventyConfig.addPlugin(pluginEmbedEverything, { add: ['soundcloud'] });
|
eleventyConfig.addPlugin(pluginEmbedEverything, {
|
||||||
|
youtube: {
|
||||||
|
options: {
|
||||||
|
lazy: true,
|
||||||
|
lite: true,
|
||||||
|
recommendSelfOnly: true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
eleventyConfig.addPlugin(pluginWordcount);
|
eleventyConfig.addPlugin(pluginWordcount);
|
||||||
eleventyConfig.addPlugin(pluginTOC, {
|
eleventyConfig.addPlugin(pluginTOC, {
|
||||||
tags: ['h2', 'h3', 'h4', 'h5', 'h6'],
|
tags: ['h2', 'h3', 'h4', 'h5', 'h6'],
|
||||||
@ -47,4 +55,4 @@ export default function(eleventyConfig) {
|
|||||||
input: "src"
|
input: "src"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user