-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Feature Request: Optional "last updated" date in default theme #258
Comments
I was also thinking about this idea yesterday. That would be useful when using vuepress to write blog, too. |
The default theme is going to be focused on documentation sites, this feature should be done at the separate blog theme, let's move to Blog Support roadmap to continue discussion. |
His idea is:
which is not specific for blog. |
Hi Evan. Will this feature be useful for documentation sites? |
To clarify, I'm thinking of specific cases like examples, tutorials, style guides, etc. Things that might cover multiple versions of a library/software etc. |
This probably doesn't have to be in the default theme but something in core to add a last updated field on page objects could be useful. |
I think it’s very useful in the default theme. Optional of course. |
Found a problem, there is a quick implementation (#282) by using
|
@ulivz can we have both? :D |
@ycmjason Sure, we can have both. |
In my opinion, we should not use
If we use |
Can anyone help to confirm which Hexo leverage ? |
In Hexo, we can set a |
So it's just configured manually? |
Definitely prefer automatically generated dates. |
I think we should use git for the reason mentioned by @meteorlxy here. Fs creation/modify time is not that useful especially if the site is built on a CI server every time. You will get the same timestamp for every file... |
Will release it at 0.9.0: #419. 🚀 |
It may be useful to have an optional "last updated" timestamp displayed on a page, especially for docs that may not be tied to specific release versions.
I was thinking this could be automated nicely with git during build on a page-by-page basis with something like:
Could also do the whole docs directory in one batch with something like:
If anyone likes this idea, do you have preferences on where the timestamp would be displayed? Next to the edit link or under page header?
I would be happy to attempt an implementation if this is of interest.
The text was updated successfully, but these errors were encountered: