Install Eleventy's official syntax highlighting plugin

This commit is contained in:
Helen Chong
2024-06-03 11:45:16 +08:00
parent f792526926
commit f83e723fcc
4 changed files with 8 additions and 0 deletions
+5
View File
@@ -7,9 +7,14 @@ Source code of my developer portfolio and blog website. Built with Eleventy.
- Eleventy's official [Image](https://www.11ty.dev/docs/plugins/image/) plugin
- Eleventy's official [RSS](https://www.11ty.dev/docs/plugins/rss/) plugin
- Eleventy's official [Navigation](https://www.11ty.dev/docs/plugins/navigation/) plugin
- Eleventy's official [Syntax Highlighting](https://www.11ty.dev/docs/plugins/syntaxhighlight/) plugin
### Eleventy Community Plugins
- [Emoji Read Time Eleventy Plugin](https://11ty.rocks/#plugin-emoji-read-time)
- [eleventy-plugin-metagen](https://www.npmjs.com/package/eleventy-plugin-metagen)
- [eleventy-plugin-embed-everything](https://www.npmjs.com/package/eleventy-plugin-embed-everything)
### markdown-it Plugins
- [markdown-it-attrs](https://www.npmjs.com/package/markdown-it-attrs)
- [markdown-it-bracketed-spans](https://www.npmjs.com/package/markdown-it-bracketed-spans)
BIN
View File
Binary file not shown.
+2
View File
@@ -1,6 +1,7 @@
// Installed Plugins
const pluginRss = require("@11ty/eleventy-plugin-rss");
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
const metagen = require('eleventy-plugin-metagen');
const emojiReadTime = require("@11tyrocks/eleventy-plugin-emoji-readtime");
@@ -17,6 +18,7 @@ module.exports = function(eleventyConfig) {
// Installed Plugins
eleventyConfig.addPlugin(pluginRss);
eleventyConfig.addPlugin(eleventyNavigationPlugin);
eleventyConfig.addPlugin(syntaxHighlight);
eleventyConfig.addPlugin(metagen);
eleventyConfig.addPlugin(emojiReadTime);
+1
View File
@@ -13,6 +13,7 @@
"@11ty/eleventy-img": "^4.0.2",
"@11ty/eleventy-navigation": "^0.3.5",
"@11ty/eleventy-plugin-rss": "^1.2.0",
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
"@11tyrocks/eleventy-plugin-emoji-readtime": "^1.0.1",
"eleventy-plugin-embed-everything": "^1.18.2",
"eleventy-plugin-metagen": "^1.8.3",