| | |
| | | created ||= st.birthtimeMs |
| | | modified ||= st.mtimeMs |
| | | } else if (source === "frontmatter" && file.data.frontmatter) { |
| | | created ||= file.data.frontmatter.date as MaybeDate |
| | | modified ||= file.data.frontmatter.lastmod as MaybeDate |
| | | modified ||= file.data.frontmatter.updated as MaybeDate |
| | | modified ||= file.data.frontmatter["last-modified"] as MaybeDate |
| | | published ||= file.data.frontmatter.publishDate as MaybeDate |
| | | created ||= file.data.frontmatter.created as MaybeDate |
| | | modified ||= file.data.frontmatter.modified as MaybeDate |
| | | published ||= file.data.frontmatter.published as MaybeDate |
| | | } else if (source === "git") { |
| | | if (!repo) { |
| | | // Get a reference to the main git repo. |