-
Notifications
You must be signed in to change notification settings - Fork 35
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 dynamic year display #89
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small remark. Two notes:
- The issue states that we "should" do this, but note that displaying a copyright is not a legal requirement.
- We host a static version of the website, so this currently gets compiled to a static year (range) anyway. To update the copyright line for new years, we need to perform a new deployment.
@@ -93,7 +93,7 @@ | |||
class="flex sm:flex-row flex-col gap-10 items-center justify-between py-[30px] pb-5 px-0 border-t-[#303030] border-t-[1px] mt-8 border-solid" | |||
> | |||
<div class="[&>p]:text-[#404040] font-normal"> | |||
<p>© 2024. All rights reserved.</p> | |||
<p>© {new Date().getFullYear()}. All rights reserved.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we do not suddenly stop hosting content from 2024, this should probably be a date range.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true ; with inside of the founding year => 2024 - {new Date().getFullYear()}
Thanks for clarifying @gmta I understand about the static deployment and optional update. Let me know if there’s anything else to adjust :) |
Hi @gmta. What is the status on it and proposed solution? It would be great to have a current year in footer |
Issue #87
Changes made:
In the path: src/components/global/footer.astro
Before:

After:
