Skip to content

Commit

Permalink
Update .eleventy.js
Browse files Browse the repository at this point in the history
Turns the Nujuck-only shortcode into a universal shortcode
  • Loading branch information
rcopstein authored Mar 6, 2021
1 parent 992c187 commit 8a82816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -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)
});
}
}

0 comments on commit 8a82816

Please sign in to comment.