Skip to content

Commit

Permalink
add web component plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
chinchang committed Aug 15, 2023
1 parent c08347a commit f2451d1
Show file tree
Hide file tree
Showing 3 changed files with 265 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
const pluginRss = require("@11ty/eleventy-plugin-rss");
const markdownIt = require("markdown-it");
const markdownItAnchor = require("markdown-it-anchor");
const pluginWebc = require("@11ty/eleventy-plugin-webc");
const { EleventyRenderPlugin } = require("@11ty/eleventy");

const markdownItConfig = {
html: true,
Expand All @@ -22,6 +24,10 @@ const markdownLib = markdownIt(markdownItConfig).use(
module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(syntaxHighlight);
eleventyConfig.addPlugin(pluginRss);
eleventyConfig.addPlugin(pluginWebc, {
components: "_includes/components/**/*.webc",
});
eleventyConfig.addPlugin(EleventyRenderPlugin);

eleventyConfig.setLibrary("md", markdownLib);

Expand Down
Loading

0 comments on commit f2451d1

Please sign in to comment.