Install Eleventy Emoji Read Time plug-in

This commit is contained in:
Helen Chong 2024-04-13 15:00:22 +08:00
parent fb11aaa8a9
commit c9490f8253
3 changed files with 3 additions and 0 deletions

BIN
bun.lockb

Binary file not shown.

View File

@ -4,6 +4,7 @@ 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');
const pluginTOC = require('eleventy-plugin-nesting-toc'); const pluginTOC = require('eleventy-plugin-nesting-toc');
const emojiReadTime = require("@11tyrocks/eleventy-plugin-emoji-readtime");
// Configure slug filter // Configure slug filter
const slugify = require("slugify"); const slugify = require("slugify");
@ -26,6 +27,7 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(pluginRss); eleventyConfig.addPlugin(pluginRss);
eleventyConfig.addPlugin(metagen); eleventyConfig.addPlugin(metagen);
eleventyConfig.addPlugin(pluginTOC, { tags: ['h2', 'h3', 'h4', 'h5'] }); eleventyConfig.addPlugin(pluginTOC, { tags: ['h2', 'h3', 'h4', 'h5'] });
eleventyConfig.addPlugin(emojiReadTime);
// Configure slug filter // Configure slug filter
eleventyConfig.addFilter("slug", (str) => { eleventyConfig.addFilter("slug", (str) => {

View File

@ -15,6 +15,7 @@
"@11ty/eleventy": "^2.0.1", "@11ty/eleventy": "^2.0.1",
"@11ty/eleventy-plugin-rss": "^1.2.0", "@11ty/eleventy-plugin-rss": "^1.2.0",
"@11ty/eleventy-plugin-webc": "^0.11.2", "@11ty/eleventy-plugin-webc": "^0.11.2",
"@11tyrocks/eleventy-plugin-emoji-readtime": "^1.0.1",
"eleventy-plugin-metagen": "^1.8.3", "eleventy-plugin-metagen": "^1.8.3",
"eleventy-plugin-nesting-toc": "^1.3.0", "eleventy-plugin-nesting-toc": "^1.3.0",
"install": "^0.13.0", "install": "^0.13.0",