mirror of
https://github.com/alrayyes/wiki.git
synced 2025-05-31 11:20:59 +00:00
fix tag pages to emit to tag/index.html to override content and folder pages
This commit is contained in:
parent
83d47f7aaa
commit
01d7d8e554
4 changed files with 20 additions and 19 deletions
quartz
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue