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 dynamic year display #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zahyaah
Copy link

@zahyaah zahyaah commented Aug 31, 2024

Issue #87

Changes made:

In the path: src/components/global/footer.astro

Before:
image

After:
image

Copy link
Contributor

@gmta gmta left a 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:

  1. The issue states that we "should" do this, but note that displaying a copyright is not a legal requirement.
  2. 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>
Copy link
Contributor

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.

@zahyaah
Copy link
Author

zahyaah commented Nov 8, 2024

Small remark. Two notes:

1. The issue states that we "should" do this, but note that displaying a copyright is not a legal requirement.

2. 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.

Thanks for clarifying @gmta I understand about the static deployment and optional update. Let me know if there’s anything else to adjust :)

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

Successfully merging this pull request may close these issues.

3 participants