Add Eleventy Render plug-in

This commit is contained in:
Helen Chong 2024-04-11 23:32:47 +08:00
parent 3b6ece319f
commit 8dda307f07
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
// Installed Plug-ins // Installed Plug-ins
const { EleventyRenderPlugin } = require("@11ty/eleventy");
const pluginWebc = require("@11ty/eleventy-plugin-webc"); const pluginWebc = require("@11ty/eleventy-plugin-webc");
const pluginRss = require("@11ty/eleventy-plugin-rss"); const pluginRss = require("@11ty/eleventy-plugin-rss");
const metagen = require('eleventy-plugin-metagen'); const metagen = require('eleventy-plugin-metagen');
@ -10,6 +11,7 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addPassthroughCopy({ "./src/assets/feed/": "/" }); eleventyConfig.addPassthroughCopy({ "./src/assets/feed/": "/" });
// Installed Plug-ins // Installed Plug-ins
eleventyConfig.addPlugin(EleventyRenderPlugin);
eleventyConfig.addPlugin(pluginWebc); eleventyConfig.addPlugin(pluginWebc);
eleventyConfig.addPlugin(pluginRss); eleventyConfig.addPlugin(pluginRss);
eleventyConfig.addPlugin(metagen); eleventyConfig.addPlugin(metagen);