mirror of
https://github.com/thiloho/thiloho.github.io.git
synced 2025-11-22 10:21:36 +01:00
Fix Date component for string from remark
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { execSync } from "child_process";
|
||||
|
||||
export const remarkModifiedTime = () => {
|
||||
return (tree, file) => {
|
||||
return (file) => {
|
||||
const filepath = file.history[0];
|
||||
const result = execSync(`git log -1 --pretty="format:%cI" "${filepath}"`);
|
||||
file.data.astro.frontmatter.lastModified = result.toString();
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user