Skip to content

fix: make footer copyright year dynamic - #51

Closed
bholmesdev wants to merge 1 commit into
mainfrom
fix/dynamic-footer-year
Closed

bholmesdev wants to merge 1 commit into
mainfrom
fix/dynamic-footer-year

Conversation

@bholmesdev

Copy link
Copy Markdown
Owner

Fix: make footer copyright year dynamic

The footer in src/layouts/BaseLayout.astro had a hardcoded © 2020-present string. This PR replaces present with new 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.astro line 76: 2020-present → 2020-{new Date().getFullYear()}

Verification

  • Site builds cleanly with pnpm run build

Conversation: 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.

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>
@netlify

netlify Bot commented May 7, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for bholmes ready!

Name Link
🔨 Latest commit 39b3906
🔍 Latest deploy log https://app.netlify.com/projects/bholmes/deploys/69fbedf541b583000839b44b
😎 Deploy Preview https://deploy-preview-51--bholmes.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying bholmesdev with  Cloudflare Pages  Cloudflare Pages

Latest commit: 39b3906
Status: ✅  Deploy successful!
Preview URL: https://82fcd677.bholmesdev.pages.dev
Branch Preview URL: https://fix-dynamic-footer-year.bholmesdev.pages.dev

View logs

@bholmesdev bholmesdev closed this Jul 31, 2026
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.

1 participant