Skip to content

Commit

Permalink
Fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
rphillips-nz committed Jun 16, 2021
1 parent 41cffca commit 757f3ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const pkginfo = require('pkginfo')(module, 'version');
const version = module.exports.version;

module.exports = function (eleventyConfig, config = {}) {
const paths = {
Expand All @@ -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);
};

0 comments on commit 757f3ea

Please sign in to comment.