-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhance the md file create time config ? #4491
Comments
There is already a |
The OP probably is asking to support "Created at" datetime along side "Last updated". |
Yes, it is |
For a simple workaround, I created a script to generate a new MD file with a template that includes the creation time. |
Across different operating systems or file systems, the behavior of birthtime is not very consistent, besides some editor may "change" birthtime too, such as vim, so maybe it's difficult to get the accurate create time, you can see below link https://stackoverflow.com/questions/58263078/fs-stat-birthtime-birthtimems-in-linux-and-macos vitepress now use git stamp to get last modified time https://github.com/vuejs/vitepress/blob/main/src/node/utils/getGitTimestamp.ts for more edit version info, you can see my repo |
Is your feature request related to a problem? Please describe.
add a "createTime" config for md file . like lastUpdated。 createTime: {text: "创建于",formatOptions: {...}}
Describe the solution you'd like
we can show my md file create time in the footer or header.
Describe alternatives you've considered
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: