Skip to content
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

Add page last updated automatically #1227

Open
eng618 opened this issue Mar 3, 2022 · 1 comment
Open

Add page last updated automatically #1227

eng618 opened this issue Mar 3, 2022 · 1 comment

Comments

@eng618
Copy link
Collaborator

eng618 commented Mar 3, 2022

Summary

Add date page was last updated automatically rather than manually changing it in frontmatter.

Justification

It's very easy to overlook updating the date a page was updated every time you make a change. So having this done automatically solves that problem. Also gives you more relient information.

Desired UX and success metrics

Rather than setting the actual date in the front matter you can set it with a boolean to display the date last updated.

Must-have functionality

Automatically generate the tag at the bottom of the page with the last updated date. This can be either site wide, or on a per page basis.

Specific timeline issues / requests

No timeline

Available extra resources

Not a lot of time to look into adding this myself atm. May have some time in the future.

@eng618
Copy link
Collaborator Author

eng618 commented Mar 3, 2022

Essentially rather than manually setting the date in frontmatter like this:

---
...
date: 3 March 2022
---

It would be great to have it defined as a boolean to enable the date for that particular page, then it can use the git history to populate the date last updated.

---
...
displayDateLastModified: true
---

(or some other key)

Examples

Here is an example of it in the current state:

image

Example of how this gets outdated easily in the theme repo as well:

Screen Shot 2022-03-03 at 3 39 46 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant