From 8a8281668cdce099f901d7c9d1b7015b4c9866da Mon Sep 17 00:00:00 2001 From: Rafael Copstein Date: Fri, 5 Mar 2021 23:52:48 -0400 Subject: [PATCH] Update .eleventy.js Turns the Nujuck-only shortcode into a universal shortcode --- .eleventy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 13daab2..6f435a8 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -1,7 +1,7 @@ const { createInlineCss } = require('./eleventy-google-fonts'); module.exports = function (eleventyConfig) { - eleventyConfig.addNunjucksAsyncShortcode("eleventyGoogleFonts", async value => { + eleventyConfig.addShortcode("eleventyGoogleFonts", async value => { return await createInlineCss(value) }); -} \ No newline at end of file +}