fix tag pages to emit to tag/index.html to override content and folder pages

This commit is contained in:
Jacky Zhao 2023-07-19 23:03:59 -07:00
parent 83d47f7aaa
commit 01d7d8e554
4 changed files with 20 additions and 19 deletions
quartz

View file

@ -61,7 +61,11 @@ export default async function buildQuartz(argv: Argv, version: string) {
directoryListing: false,
})
const status = res.statusCode
const statusString = status === 200 ? chalk.green(`[${status}]`) : chalk.red(`[${status}]`)
const statusString = (status >= 200 && status < 300) ?
chalk.green(`[${status}]`) :
(status >= 300 && status < 400) ?
chalk.yellow(`[${status}]`) :
chalk.red(`[${status}]`)
console.log(statusString + chalk.grey(` ${req.url}`))
})
server.listen(argv.port)