mirror of
https://github.com/alrayyes/wiki.git
synced 2025-06-06 05:53:14 +00:00
rendering, link resolution, asset copying
This commit is contained in:
parent
ad6ce0d73f
commit
21c007e2fc
19 changed files with 564 additions and 274 deletions
quartz/plugins/transformers
|
@ -45,12 +45,11 @@ export class CreatedModifiedDate extends QuartzTransformerPlugin {
|
|||
modified ||= file.data.frontmatter["last-modified"]
|
||||
published ||= file.data.frontmatter.publishDate
|
||||
} else if (source === "git") {
|
||||
console.log(file)
|
||||
if (!repo) {
|
||||
repo = new Repository(file.cwd)
|
||||
}
|
||||
|
||||
modified ||= new Date(await repo.getFileLatestModifiedDateAsync(fp))
|
||||
modified ||= new Date(await repo.getFileLatestModifiedDateAsync(file.data.filePath!))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue