Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@


* 每次合并到主分支之前需要至少一名其他人 测试并同意(另一台机器修改部分的运行结果)
* Github访问不稳定可以[使用Stem++、fastgithub进行加速(也可使用其他代理)](https://gitee.com/OpenHUTB/sw/releases/tag/up)
* Github访问不稳定可以[使用Stem++、fastgithub进行加速(也可使用其他代理)](https://gitee.com/OpenHUTB/sw/releases/tag/up).

5 changes: 3 additions & 2 deletions hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@

# 动态获取页脚版权页面的年份
def on_config(config, **kwargs):
year = str(datetime.now().year)
config.copyright = config.copyright.format(year=year)
copyright_text = config.copyright
if isinstance(copyright_text, str):
config.copyright = copyright_text.replace("{year}", str(datetime.now().year))