页脚

John Doe 2025-03-06 22:50:41
Categories: Tags:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#------------------------------------------------------
# 页脚配置
#------------------------------------------------------
footer:
# 页脚第二行文字的 HTML,建议保留链接,用于向更多人推广本主题
content: '
<div>
Theme
<a href="https://github.com/Exisi/hexo-theme-node-tree" target="_blank">Node-Tree</a>
Powered by
<a href="https://hexo.io" target="_blank">Hexo</a>
</div>
'

# 版权声明,会显示在每个界面的结尾
copyright:
enable: true
url: ''
baseYear: 2024
# 展示网站的 PV、UV 统计数
statistics:
# Vercount 是一个基于 NextJS 和 Redis 的高效网站计数器。支持自部署
# 相关配置: https://vercount.one/
vercount:
enable: true
src: https://cn.vercount.one/js

页脚声明

您可以通过修改 footer.content 配置修改页脚第二行文字的 HTML。默认显示内容为主题地址,如果您特殊的定制需求,可以保留默认,用于向更多人推广 Node Tree 主题。

1
2
3
4
5
6
7
8
9
footer:
content: '
<div>
Theme
<a href="https://github.com/Exisi/hexo-theme-node-tree" target="_blank">Node-Tree</a>
Powered by
<a href="https://hexo.io" target="_blank">Hexo</a>
</div>
'

版权声明

版权声明默认启用,即 footer.copyright.enabletrue。您可以通过 footer.copyright.url 修改页面底部的版权作者的跳转链接。此外,您可以修改 footer.copyright.baseYear 配置修改默认的站点起始运行时间。

1
2
3
4
5
footer:
copyright:
enable: true
url: ''
baseYear: 2024

如果您不想显示有关版权声明,可以将 footer.copyright.enable 设置为 false 关闭显示。

网站访问统计

本主题使用了 Vercount 作为界面的访问统计,默认启用界面的访问统计功能。

1
2
3
4
5
footer:
statistics:
vercount:
enable: true
src: https://cn.vercount.one/js

Vercount 自部署配置

您可以参考 Vercount-自托管指南 部署私有的访问统计服务。

1
2
3
4
5
footer:
statistics:
vercount:
enable: true
src: https://domain.com/js

然后将 footer.statistics.vercount.src 修改为您自部署的域名前缀,例如 https://domain.com/js