Skip to content

Commit

Permalink
Merge pull request jerryc127#1321 from jerryc127/revert-1309-dev
Browse files Browse the repository at this point in the history
Revert "允许不显示footer中的since年份"
  • Loading branch information
jerryc127 authored Jun 30, 2023
2 parents 347f605 + 7dded29 commit b6e0243
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 b6e0243

Please sign in to comment.