Skip to content

Commit 3a52711

Browse files
committed
chore: update index pages
1 parent 8585470 commit 3a52711

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

index.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,8 @@
141141
});
142142

143143
hook.afterEach(function (html) {
144-
const footer = [
145-
"<footer>",
146-
'<span>Copyright © 2018-2021 <a href="https://github.com/doocs" target="_blank">Doocs</a>. All rights reserved.',
147-
"</footer>",
148-
].join("");
144+
const currentYear = new Date().getFullYear()
145+
const footer = `<footer><span>Copyright © 2018-${currentYear} <a href="https://github.com/doocs" target="_blank">Doocs</a>. All Rights Reserved</footer>`
149146
return html + footer;
150147
});
151148
},

0 commit comments

Comments
 (0)