aboutsummaryrefslogtreecommitdiffstats
path: root/eleventy.config.js
diff options
context:
space:
mode:
author2021-09-23 18:56:13 +0530
committer2021-09-23 18:56:13 +0530
commit4b84a135976183e7fae8857b222929306a1af2ad (patch)
tree0cff5db4eacb4c8660fbeb47c32a1eb7d3e028d4 /eleventy.config.js
parentinitial commit (diff)
downloadsudomsg-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 'eleventy.config.js')
-rw-r--r--eleventy.config.js13
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");