Repository navigation
fix: make footer copyright year dynamic - #51
Closed
bholmesdev wants to merge 1 commit into
Closed
bholmesdev wants to merge 1 commit into
bholmesdev wants to merge 1 commit into
Conversation
Replace hardcoded '2020-present' with dynamic year using new Date().getFullYear(), so the footer always shows the current year at build time. Co-Authored-By: Oz <oz-agent@warp.dev>
✅ Deploy Preview for bholmes ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Deploying bholmesdev with
|
| Latest commit: |
39b3906
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://82fcd677.bholmesdev.pages.dev |
| Branch Preview URL: | https://fix-dynamic-footer-year.bholmesdev.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix: make footer copyright year dynamic
The footer in
src/layouts/BaseLayout.astrohad a hardcoded© 2020-presentstring. This PR replacespresentwithnew Date().getFullYear(), so the year is computed dynamically at build time and stays correct automatically.This supersedes the static year fixes proposed in PRs #48 and #49 — no more manual updates needed.
Change
src/layouts/BaseLayout.astroline 76:2020-present→2020-{new Date().getFullYear()}Verification
pnpm run buildConversation: https://staging.warp.dev/conversation/2179d9cb-ec2c-4303-897c-d64bf8807027
Run: https://oz.staging.warp.dev/runs/019e0016-0abf-7067-bf58-559f797fabc1
This PR was generated with Oz.