chore: update index pages

This commit is contained in:
yanglbme 2021-09-12 11:51:11 +08:00
parent 8585470be9
commit 3a52711c7d

View File

@ -141,11 +141,8 @@
});
hook.afterEach(function (html) {
const footer = [
"<footer>",
'<span>Copyright © 2018-2021 <a href="https://github.com/doocs" target="_blank">Doocs</a>. All rights reserved.',
"</footer>",
].join("");
const currentYear = new Date().getFullYear()
const footer = `<footer><span>Copyright © 2018-${currentYear} <a href="https://github.com/doocs" target="_blank">Doocs</a>. All Rights Reserved</footer>`
return html + footer;
});
},