Compare commits

...

3 commits

Author SHA1 Message Date
Dennis Paulus 32da995777 fix: styles exporting 2024-02-04 14:44:02 +01:00
Dennis Paulus c6496ab7a3 feat: fonts styling 2024-02-04 14:43:55 +01:00
Dennis Paulus 53f2ce599a chore: remove debug logs 2024-02-04 14:42:39 +01:00
3 changed files with 5 additions and 7 deletions

View file

@ -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
);
});
}

View file

@ -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}}