Compare commits
3 commits
11cc156661
...
32da995777
Author | SHA1 | Date | |
---|---|---|---|
Dennis Paulus | 32da995777 | ||
Dennis Paulus | c6496ab7a3 | ||
Dennis Paulus | 53f2ce599a |
11
build.mjs
11
build.mjs
|
@ -84,8 +84,6 @@ function buildMarkdownPages() {
|
|||
)
|
||||
).toString();
|
||||
|
||||
console.log(markdown);
|
||||
|
||||
const result = template({
|
||||
...getData(),
|
||||
markdown,
|
||||
|
@ -122,15 +120,14 @@ function buildStyles() {
|
|||
if (!fs.existsSync("./build/styles")) fs.mkdirSync("./build/styles");
|
||||
if (!fs.existsSync("./sass")) return;
|
||||
fs.readdirSync("./sass").forEach((file) => {
|
||||
console.log(1);
|
||||
if (!(file.endsWith(".scss") || file.endsWith(".sass"))) return;
|
||||
console.log(2);
|
||||
if (file.startsWith("_")) return;
|
||||
console.log(3);
|
||||
const result = sass.compile(`./sass/${file}`, {
|
||||
style: "compressed",
|
||||
});
|
||||
console.log(4);
|
||||
fs.writeFileSync("./build/styles/styles.css", result.css);
|
||||
fs.writeFileSync(
|
||||
`./build/styles/${file.substring(0, file.length - 5)}.css`,
|
||||
result.css
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>{{title}}</title>
|
||||
<link rel="stylesheet" href="/styles/styles.css">
|
||||
<link rel="stylesheet" href="/styles/fonts.css">
|
||||
</head>
|
||||
<body>
|
||||
{{> header}}
|
||||
|
|
Loading…
Reference in a new issue