Skip to content

Commit

Permalink
Add support for syntax highlighting (PrismJS)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubobubobubobubo committed Aug 26, 2024
1 parent 9efdc2d commit cf05ae4
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const eleventySass = require("@11tyrocks/eleventy-plugin-sass-lightningcss");
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");

module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(syntaxHighlight);
eleventyConfig.addPlugin(eleventySass);
eleventyConfig.addPassthroughCopy("src/media");
eleventyConfig.addPassthroughCopy("src/content");
Expand Down
23 changes: 23 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"author": "BuboBubo",
"dependencies": {
"@11ty/eleventy": "^2.0.1",
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
"@11tyrocks/eleventy-plugin-sass-lightningcss": "^1.2.0",
"eleventy": "^1.0.7"
},
Expand Down

0 comments on commit cf05ae4

Please sign in to comment.