diff --git a/src/utils/lastModified.mjs b/src/utils/lastModified.mjs index 17f6e0e..a5da1b3 100644 --- a/src/utils/lastModified.mjs +++ b/src/utils/lastModified.mjs @@ -3,11 +3,13 @@ import { statSync } from "fs"; export function modifiedTime() { return function (_tree, file) { const path = file.history[0]; - try { - const result = statSync(path); - file.data.astro.frontmatter.lastModified = result.mtime; - } catch (error) { - return; - } + const result = statSync(path); + file.data.astro.frontmatter.lastModified = result.mtime; + // try { + // const result = statSync(path); + // file.data.astro.frontmatter.lastModified = result.mtime; + // } catch (error) { + // return; + // } } } \ No newline at end of file