You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Theme and plugin builders may want to fetch the page date and use it.
The date can also be infered from git log, but git plugin currently support only updatedTime and contributors.
I think adding a new field called createTime(first commit) would be better for theme and plugin builders to fetch the page date from git as a improvement instead of letting users fill in.
The text was updated successfully, but these errors were encountered:
Feature request
I saw V2 add a
date
field in frontmatter in here:https://github.com/vuepress/vuepress-next/blob/55f780c4a516b2c0119328874906647af80ac73b/packages/%40vuepress/plugin-git/src/types.ts#L5-L15
And add a date field in page:
https://github.com/vuepress/vuepress-next/blob/55f780c4a516b2c0119328874906647af80ac73b/packages/%40vuepress/core/src/types/page.ts#L100-L105
Theme and plugin builders may want to fetch the page date and use it.
The date can also be infered from git log, but git plugin currently support only
updatedTime
andcontributors
.https://github.com/vuepress/vuepress-next/blob/55f780c4a516b2c0119328874906647af80ac73b/packages/%40vuepress/plugin-git/src/types.ts#L5-L15
I think adding a new field called
createTime
(first commit) would be better for theme and plugin builders to fetch the page date from git as a improvement instead of letting users fill in.The text was updated successfully, but these errors were encountered: