feat: created recipes structure
This commit is contained in:
parent
a035c08249
commit
f93207b4e3
7 changed files with 432 additions and 13 deletions
|
|
@ -42,6 +42,13 @@ const getTitleFromFilename = (filePath) => {
|
|||
}
|
||||
|
||||
const getFileCreatedTime = (filePath) => {
|
||||
// Try git first for accurate cross-system creation time
|
||||
const gitTime = getGitCreatedTime(filePath);
|
||||
if (gitTime) {
|
||||
return gitTime;
|
||||
}
|
||||
|
||||
// Fall back to filesystem for untracked files
|
||||
try {
|
||||
const stats = fs.statSync(filePath);
|
||||
const time = stats.birthtime ?? stats.mtime;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue