Add year to copyright
parent
d0af8aca8d
commit
491c7ba3c1
|
@ -8,11 +8,12 @@ interface NavItem {
|
|||
}
|
||||
|
||||
const links: NavItem[] = [{ text: 'site credits', link: '/credits' }]
|
||||
const year = new Date().getFullYear()
|
||||
---
|
||||
|
||||
<section>
|
||||
<footer class={`flex bg-background-light ${paddingX} ${paddingY}`}>
|
||||
<span class="mr-auto">Copyright Ethan Reece</span>
|
||||
<span class="mr-auto">Copyright Ethan Reece {year}</span>
|
||||
<nav>
|
||||
{
|
||||
links.map((link) => (
|
||||
|
|
Reference in New Issue