@@ -34,6 +34,7 @@ module.exports = function (eleventyConfig) {
34
34
35
35
// Copy these assets straight across
36
36
eleventyConfig . addPassthroughCopy ( { "./src/_assets/svg" : "_assets/svg" } ) ;
37
+ eleventyConfig . addPassthroughCopy ( { "./src/_assets/img" : "_assets/img" } ) ;
37
38
38
39
// Alias these layouts
39
40
eleventyConfig . addLayoutAlias ( "default" , "layouts/base.njk" ) ;
@@ -47,29 +48,29 @@ module.exports = function (eleventyConfig) {
47
48
linkify : true ,
48
49
} ;
49
50
50
- const rwdOptions = {
51
- responsive : {
52
- srcset : {
53
- "*" : [
54
- {
55
- width : 320 ,
56
- rename : {
57
- suffix : "-320" ,
58
- } ,
59
- } ,
60
- {
61
- width : 550 ,
62
- rename : {
63
- suffix : "-550" ,
64
- } ,
65
- } ,
66
- ] ,
67
- } ,
68
- sizes : {
69
- "*" : "(max-width: 550px) calc(100vw - 120px), 550px" ,
70
- } ,
71
- } ,
72
- } ;
51
+ // const rwdOptions = {
52
+ // responsive: {
53
+ // srcset: {
54
+ // "*": [
55
+ // {
56
+ // width: 320,
57
+ // rename: {
58
+ // suffix: "-320",
59
+ // },
60
+ // },
61
+ // {
62
+ // width: 550,
63
+ // rename: {
64
+ // suffix: "-550",
65
+ // },
66
+ // },
67
+ // ],
68
+ // },
69
+ // sizes: {
70
+ // "*": "(max-width: 550px) calc(100vw - 120px), 550px",
71
+ // },
72
+ // },
73
+ // };
73
74
74
75
let markdownLibrary = markdownIt ( {
75
76
html : true ,
@@ -82,29 +83,27 @@ module.exports = function (eleventyConfig) {
82
83
// permalinkClass: "direct-link",
83
84
// permalinkSymbol: "#",
84
85
// })
85
- . use ( markdownItFootnote )
86
- . use ( markdownItResponsive , rwdOptions ) ;
86
+ . use ( markdownItFootnote ) ;
87
+ // .use(markdownItResponsive, rwdOptions);
87
88
88
89
markdownLibrary . renderer . rules . footnote_block_open = ( ) => {
89
- return '<div class="footnotes">\n' +
90
- '<h4>Footnotes</h4>\n' +
90
+ return (
91
+ '<div class="footnotes">\n' +
92
+ "<h4>Footnotes</h4>\n" +
91
93
'<ol class="footnotes-list">\n'
92
- }
94
+ ) ;
95
+ } ;
93
96
94
97
markdownLibrary . renderer . rules . footnote_block_close = ( ) => {
95
- return '</ol>\n' +
96
- '</div>\n'
97
- }
98
+ return "</ol>\n" + "</div>\n" ;
99
+ } ;
98
100
99
- eleventyConfig . setLibrary (
100
- "md" ,
101
- markdownLibrary
102
- ) ;
101
+ eleventyConfig . setLibrary ( "md" , markdownLibrary ) ;
103
102
104
103
eleventyConfig . setDataDeepMerge ( true ) ;
105
104
106
105
return {
107
- templateFormats : [ "html" , "njk" , "md" , "11ty.js" ] ,
106
+ templateFormats : [ "html" , "njk" , "md" ] ,
108
107
pathPrefix : "/" ,
109
108
markdownTemplateEngine : "njk" ,
110
109
htmlTemplateEngine : "njk" ,
0 commit comments