From 7dded29438b6e049818fa3976463d62a468f38a4 Mon Sep 17 00:00:00 2001 From: Jerry Wong Date: Fri, 30 Jun 2023 10:51:57 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E5=85=81=E8=AE=B8=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BAfooter=E4=B8=AD=E7=9A=84since=E5=B9=B4=E4=BB=BD"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/includes/footer.pug | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/layout/includes/footer.pug b/layout/includes/footer.pug index 0e4f513..4d2ae79 100644 --- a/layout/includes/footer.pug +++ b/layout/includes/footer.pug @@ -2,11 +2,10 @@ if theme.footer.owner.enable - var now = new Date() - var nowYear = now.getFullYear() - if theme.footer.owner.since != false - if theme.footer.owner.since != nowYear - .copyright!= `©${theme.footer.owner.since} - ${nowYear} By ${config.author}` - else - .copyright!= `©${nowYear} By ${config.author}` + if theme.footer.owner.since && theme.footer.owner.since != nowYear + .copyright!= `©${theme.footer.owner.since} - ${nowYear} By ${config.author}` + else + .copyright!= `©${nowYear} By ${config.author}` if theme.footer.copyright .framework-info span= _p('footer.framework') + ' '