@@ -3,6 +3,7 @@ const path = require('path');
3
3
const yaml = require ( 'js-yaml' ) ;
4
4
const NavigationPlugin = require ( '@11ty/eleventy-navigation' ) ;
5
5
const ErrorOverlayPlugin = require ( 'eleventy-plugin-error-overlay' ) ;
6
+ const syntaxHighlight = require ( '@11ty/eleventy-plugin-syntaxhighlight' ) ;
6
7
7
8
const filters = require ( './utils/filters' ) ;
8
9
const markdown = require ( './utils/markdown' ) ;
@@ -21,8 +22,9 @@ module.exports = (config) => {
21
22
config . addDataExtension ( 'yml' , ( contents ) => yaml . safeLoad ( contents ) ) ;
22
23
23
24
// Plugins
24
- // Shows error name, message, and fancy stacktrace
25
+ config . addPlugin ( syntaxHighlight ) ;
25
26
config . addPlugin ( NavigationPlugin ) ;
27
+ // Shows error name, message, and fancy stacktrace
26
28
config . addPlugin ( ErrorOverlayPlugin ) ;
27
29
28
30
// Filters
@@ -43,8 +45,9 @@ module.exports = (config) => {
43
45
44
46
// Collections
45
47
config . addCollection ( 'projects' , ( collection ) =>
46
- collection . getFilteredByGlob ( 'src/projects/*.md' )
47
- . filter ( ( item ) => ! ( item . data . draft && isProduction ) )
48
+ collection
49
+ . getFilteredByGlob ( 'src/projects/*.md' )
50
+ . filter ( ( item ) => ! ( item . data . draft && isProduction ) )
48
51
) ;
49
52
config . addCollection ( 'notes' , ( collection ) =>
50
53
collection
0 commit comments