为你的Gridea主题添加运行时间显示
00 分钟
2023-10-24
2024-4-2
type
status
date
slug
summary
tags
category
icon
password
相信经常关注我博客的小伙伴一定发现我的博客下面多了这么一个东西:
notion image
下面我将教你们如何在Gridea上添加像这样的运行时间显示。

一,在全站底部添加JS代码

在资源管理器中定位到footer.ejs,在<%- themeConfig.footerInfo %>后面换行并添加:
</footer>之后换行并添加以下内容
即可。

二,添加配置项

资源管理器定位到config.json配置文件,在最后面或最前面添加以下内容:
打开Gridea(若之前修改时已经打开则重启Gridea),选择Theme,再选择Custom configuration,点击统计,配置完成即可。

评论