Skip to content

Commit 2228302

Browse files
authored
Add Mix, Ditch NodeSASS
1 parent 597314a commit 2228302

14 files changed

+15201
-16030
lines changed

.eleventy.js

Lines changed: 35 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module.exports = function (eleventyConfig) {
3434

3535
// Copy these assets straight across
3636
eleventyConfig.addPassthroughCopy({ "./src/_assets/svg": "_assets/svg" });
37+
eleventyConfig.addPassthroughCopy({ "./src/_assets/img": "_assets/img" });
3738

3839
// Alias these layouts
3940
eleventyConfig.addLayoutAlias("default", "layouts/base.njk");
@@ -47,29 +48,29 @@ module.exports = function (eleventyConfig) {
4748
linkify: true,
4849
};
4950

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+
// };
7374

7475
let markdownLibrary = markdownIt({
7576
html: true,
@@ -82,29 +83,27 @@ module.exports = function (eleventyConfig) {
8283
// permalinkClass: "direct-link",
8384
// permalinkSymbol: "#",
8485
// })
85-
.use(markdownItFootnote)
86-
.use(markdownItResponsive, rwdOptions);
86+
.use(markdownItFootnote);
87+
// .use(markdownItResponsive, rwdOptions);
8788

8889
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" +
9193
'<ol class="footnotes-list">\n'
92-
}
94+
);
95+
};
9396

9497
markdownLibrary.renderer.rules.footnote_block_close = () => {
95-
return '</ol>\n' +
96-
'</div>\n'
97-
}
98+
return "</ol>\n" + "</div>\n";
99+
};
98100

99-
eleventyConfig.setLibrary(
100-
"md",
101-
markdownLibrary
102-
);
101+
eleventyConfig.setLibrary("md", markdownLibrary);
103102

104103
eleventyConfig.setDataDeepMerge(true);
105104

106105
return {
107-
templateFormats: ["html", "njk", "md", "11ty.js"],
106+
templateFormats: ["html", "njk", "md"],
108107
pathPrefix: "/",
109108
markdownTemplateEngine: "njk",
110109
htmlTemplateEngine: "njk",

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v17.1.0

0 commit comments

Comments
 (0)