diff --git a/.eleventy.js b/.eleventy.js index e011497..6ad2955 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -6,7 +6,7 @@ module.exports = (eleventyConfig, options) => { eleventyConfig.on('afterBuild', () => { const config = makeConfig('') - if (!config.length) { + if (Object.keys(config).length === 0) { config.token = process.env.TORCHLIGHT_TOKEN config.highlight = { input: '_site' diff --git a/package.json b/package.json index 953bb17..e8b603d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eleventy-plugin-torchlight", - "version": "0.1.6", + "version": "0.1.7", "description": "This plugin runs your HTML files through Torchlight.dev for syntax highlighting", "homepage": "https://github.com/timkley/eleventy-plugin-torchlight", "main": ".eleventy.js",