easier example

This commit is contained in:
despiegk
2022-07-23 10:09:10 +02:00
parent 1202f807ef
commit 5ee6f8e0ff
92 changed files with 4469 additions and 1 deletions

20
initcss.js Normal file
View File

@@ -0,0 +1,20 @@
// Makes a simple ./static/css/index.css file right after "clean" so there *is* one
// ... thus keeping Zola from erroring out when you do `npm run start` (dev mode)
const fs = require("fs")
const initDir = 'static/css'
const initCSSFile = 'static/css/index.css'
const initValue = `
body {
color: green;
background-color: yellow;
font-family: monospace;
}
`
if(!fs.existsSync(initDir)) {
fs.mkdirSync(initDir)
}
if(!fs.existsSync(initCSSFile)) {
fs.writeFileSync(initCSSFile, initValue)
}