mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
Update copyright year with dynamic current year at the footer
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
import Hr from "./Hr.astro";
|
import Hr from "./Hr.astro";
|
||||||
import LinkButton from "./LinkButton.astro";
|
import LinkButton from "./LinkButton.astro";
|
||||||
import socialLinks from "@utils/socialLinks";
|
import socialLinks from "@utils/socialLinks";
|
||||||
|
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
---
|
---
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
@@ -23,7 +25,7 @@ import socialLinks from "@utils/socialLinks";
|
|||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
<div class="copyright-wrapper">
|
<div class="copyright-wrapper">
|
||||||
<span>Copyright © 2022</span>
|
<span>Copyright © {currentYear}</span>
|
||||||
<span class="separator"> | </span>
|
<span class="separator"> | </span>
|
||||||
<span>All rights reserved.</span>
|
<span>All rights reserved.</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user