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 a Last Updated date / Versioning #5

Open
terencehuynh opened this issue Oct 17, 2020 · 4 comments
Open

Add a Last Updated date / Versioning #5

terencehuynh opened this issue Oct 17, 2020 · 4 comments
Labels

Comments

@terencehuynh
Copy link
Owner

Would be nice to include a last updated date so that people know when it was last updated, in case new restrictions get applied and we may not have the updated version when a person visited it.

@Remakh
Copy link

Remakh commented Oct 17, 2020

mind if I try?

@terencehuynh
Copy link
Owner Author

Yeah sure @Remakh

@Remakh
Copy link

Remakh commented Oct 19, 2020

I'm a bit stuck. I have used react in the past, but in nextjs you don't pass state to components or handle change? I tried using document.lastModified, but it's a bit buggy since nextjs does server-side rendering.

@terencehuynh
Copy link
Owner Author

Hi @Remakh, apologies in not getting back to you sooner. You could also try generating a file based on the git commit and have the site read it from said file?

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

No branches or pull requests

2 participants