diff options
author | Marc Pervaz Boocha <mboocha@sudomsg.xyz> | 2021-09-23 18:56:13 +0530 |
---|---|---|
committer | Marc Pervaz Boocha <mboocha@sudomsg.xyz> | 2021-09-23 18:56:13 +0530 |
commit | 4b84a135976183e7fae8857b222929306a1af2ad (patch) | |
tree | 0cff5db4eacb4c8660fbeb47c32a1eb7d3e028d4 /eleventy.config.js | |
parent | initial commit (diff) | |
download | sudomsg-4b84a135976183e7fae8857b222929306a1af2ad.tar sudomsg-4b84a135976183e7fae8857b222929306a1af2ad.tar.gz sudomsg-4b84a135976183e7fae8857b222929306a1af2ad.tar.bz2 sudomsg-4b84a135976183e7fae8857b222929306a1af2ad.tar.lz sudomsg-4b84a135976183e7fae8857b222929306a1af2ad.tar.xz sudomsg-4b84a135976183e7fae8857b222929306a1af2ad.tar.zst sudomsg-4b84a135976183e7fae8857b222929306a1af2ad.zip |
make it ready to deploy
Diffstat (limited to '')
-rw-r--r-- | eleventy.config.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/eleventy.config.js b/eleventy.config.js index b2e2a5b..9adfcf0 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -8,19 +8,6 @@ module.exports = eleventyConfig => { typographer: true }).use(require('markdown-it-attrs'))) - eleventyConfig.addTransform('htmlmin', (content, outputPath) => { - if (outputPath && outputPath.endsWith('.html')) { - const minified = require("html-minifier").minify(content, { - useShortDoctype: true, - removeComments: true, - collapseWhitespace: true - }) - return minified - } - - return content - }) - const { DateTime } = require('luxon') eleventyConfig.addFilter('datefmt', date => { return DateTime.fromJSDate(date, { zone: 'utc' }).toFormat("dd LLL yyyy"); |