Skip to content

Commit 4eb4874

Browse files
committed
feat: Dynamic copyright year
1 parent 3fd6bad commit 4eb4874

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/VFooter.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<script setup lang="ts">
2+
const date = new Date();
3+
</script>
4+
15
<template>
26
<footer class="footer relative pt-10 pb-10 lg:pb-24 lg:pt-28">
37
<div
@@ -156,7 +160,7 @@
156160
<footer
157161
class="pt-12 mx-auto px-6 lg:max-w-[75rem] text-gray-400 text-sm text-center lg:text-left"
158162
>
159-
Templatr &copy; 2023 by Shaun. All rights unreserved.
163+
Templatr &copy; {{ date.getFullYear() }} by Shaun. All rights unreserved.
160164
</footer>
161165
</footer>
162166
</template>

0 commit comments

Comments
 (0)