From 757f3ea2ba0a4481244244a533bf6e0e7bd6cc9c Mon Sep 17 00:00:00 2001 From: Ross Phillips Date: Wed, 16 Jun 2021 15:53:36 +1200 Subject: [PATCH] Fix version --- .eleventy.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.eleventy.js b/.eleventy.js index 37eff07..43dd9a6 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -1,4 +1,5 @@ const pkginfo = require('pkginfo')(module, 'version'); +const version = module.exports.version; module.exports = function (eleventyConfig, config = {}) { const paths = { @@ -12,5 +13,5 @@ module.exports = function (eleventyConfig, config = {}) { eleventyConfig.addNunjucksShortcode('ccConfigPath', (key) => paths[key] || ''); eleventyConfig.addNunjucksShortcode('ccPathPrefix', () => config.pathPrefix || ''); eleventyConfig.addNunjucksShortcode('ccInput', () => config.input || ''); - eleventyConfig.addNunjucksShortcode('ccVersion', () => module.exports.version); + eleventyConfig.addNunjucksShortcode('ccVersion', () => version); };