#107 - updated WIP layout

This commit is contained in:
Simon Cambier
2023-02-08 18:11:11 +01:00
parent a5b3e336e1
commit e9c3e9414e
4 changed files with 84 additions and 37 deletions

View File

@@ -43,6 +43,12 @@ export function removeFrontMatter(text: string): string {
return text.replace(regexYaml, '')
}
export function pathWithoutFilename(path: string): string {
const split = path.split('/')
split.pop()
return split.join('/')
}
export function wait(ms: number): Promise<void> {
return new Promise(resolve => {
setTimeout(resolve, ms)