Skip to content

Commit

Permalink
Revert "允许不显示footer中的since年份"
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryc127 authored Jun 30, 2023
1 parent 347f605 commit 7dded29
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions layout/includes/footer.pug
Original file line number Diff line number Diff line change
Expand Up @@ -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') + ' '
Expand Down

0 comments on commit 7dded29

Please sign in to comment.