Skip to content

Commit 28adffe

Browse files
committed
update build process, maxboeck#4
1 parent fd957fe commit 28adffe

File tree

9 files changed

+8482
-7849
lines changed

9 files changed

+8482
-7849
lines changed

.eleventy.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
const syntaxHighlight = require('@11ty/eleventy-plugin-syntaxhighlight')
22
const htmlMinifier = require('html-minifier')
33

4-
module.exports = function(config) {
4+
module.exports = function (config) {
55
config.addPlugin(syntaxHighlight)
66

77
config.addLayoutAlias('base', 'base.njk')
88
config.addLayoutAlias('page', 'page.njk')
99

10-
config.addFilter('mapNodes', function(nodes, radius, width, height) {
10+
config.addFilter('mapNodes', function (nodes, radius, width, height) {
1111
return nodes.map((node, index) => {
1212
const angle = (index / (nodes.length / 2)) * Math.PI
1313
const x = radius * Math.cos(angle) + width / 2
@@ -22,7 +22,7 @@ module.exports = function(config) {
2222
})
2323
})
2424

25-
config.addTransform('htmlmin', function(content, outputPath) {
25+
config.addTransform('htmlmin', function (content, outputPath) {
2626
if (outputPath.endsWith('.html')) {
2727
return htmlMinifier.minify(content, {
2828
useShortDoctype: true,
@@ -43,7 +43,7 @@ module.exports = function(config) {
4343
layouts: 'layouts',
4444
data: 'data'
4545
},
46-
templateFormats: ['njk', 'md', 'css'],
46+
templateFormats: ['njk', 'md', '11ty.js'],
4747
htmlTemplateEngine: 'njk',
4848
markdownTemplateEngine: 'njk',
4949
passthroughFileCopy: true

_tasks/clean.js

-4
This file was deleted.

_tasks/styles.js

-13
This file was deleted.

_tasks/watch.js

-7
This file was deleted.

gulpfile.js

-6
This file was deleted.

0 commit comments

Comments
 (0)