Skip to content

Add created time #4892

@LongYinStudio

Description

@LongYinStudio

Is your feature request related to a problem? Please describe.

It would be better to add the 'created' time, not just the 'last updated' time.

This feature was previously requested in 2023 but remains unimplemented. Issue:#1891

Using the lastUpdated time is really not good. After I migrated from VuePress to VitePress, I had to move the Markdown files, which caused the lastUpdated time of all articles to be the day I migrated to VitePress.

Describe the solution you'd like

Add created time

Describe alternatives you've considered

No response

Additional context

const child = spawn('git', ['log', '-1', '--diff-filter=A', '--follow', '--format="%ci"', file]);

The execution result of the above git can be used to obtain the creation time of the article

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions