-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Last updated: feeding data through front matter, new "created" metadata #5691
Comments
Agree that using frontmatter options to override defaults is a good idea. With a |
I will probably build this feature myself after the |
@slorber proposed in #7263 a similar API: last_update:
author: string
date: string I think that makes sense as well. We can possibly add other data in this namespace. Maybe we can even extend it to a history:
# First item: creation
- author: ...
date: ...
- author: ...
date: ...
# Last item: last update
- author: ...
date: ... |
Now that |
I would like to work on this. Should I implement the history or only the last update? |
@dpang314 Let's start with a back-compatible |
Will do. |
As we discussed on discord, I'm not sure to understand the use-case for this 🤪 In any case, making it possible for users to access a "created" metadata might have some benefits, just not sure to understand yet how it would be used in practice. |
This comment was marked as spam.
This comment was marked as spam.
Hi-- I'm interested in working on this. It seems like it would be pretty simple... yeah? I'll give it a shot over the next lil' bit and let you know how far I get. |
🚀 Feature
Two things:
Have you read the Contributing Guidelines on issues?
Yes
Has this been requested on Canny?
Requested multiple times on Discord
Motivation
The "created" metadata can be used to differentiate between "new" pages and "deprecated" pages. "Last updated" shouldn't be entirely relying on git history since that can be buggy sometimes.
API Design
Front matter options:
New config options
showCreateTime
andshowCreateAuthor
The implementation of "create time" shouldn't be too hard with git, but it can also be messed up in versioning, so🤷♂️ Front matter metadata FTW
Have you tried building it?
No
The text was updated successfully, but these errors were encountered: