Footer

John Doe 2025-02-18 02:36:03
Categories: Tags:
_config.node-tree.yml
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 Settings
#------------------------------------------------------
footer:
# HTML of the first line of the footer, it is recommended to keep the link to promote this theme to more people
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, will be displayed at the end of each page
copyright:
enable: true
url: ''
baseYear: 2024
# Display website PV and UV statistics
statistics:
# Vercount is an efficient website counter based on NextJS and Redis. Support self-deployment
# see: https://vercount.one/
vercount:
enable: true
src: https://cn.vercount.one/js

You can modify the footer.content configuration to change the HTML of the second line of text in the footer. The default display content is a citation for the theme, and if you do not have any special customization needs, you can keep the default setting, which is used to promote the Node Tree theme to more people.

_config.node-tree.yml
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>
'

The copyright statement is enabled by default, meaning footer.copyright.enable is set to true. You can modify the jump link for the copyright author at the bottom of the page by changing the footer.copyright.url. Additionally, you can update the footer.copyright.baseYear configuration to change the default site start-up running year.

_config.node-tree.yml
1
2
3
4
5
footer:
copyright:
enable: true
url: ''
baseYear: 2024

If you do not wish to display the copyright statement, you can set footer.copyright.enable to false.

Website visit statistics

The theme uses Vercount as the interface for visit statistics, and the interface visit statistics feature is enable by default.

_config.node-tree.yml
1
2
3
4
5
footer:
statistics:
vercount:
enable: true
src: https://cn.vercount.one/js

Vercount self-host configuration

You can refer to the Vercount Self-Hosted Guide to deploy a private access statistics service.

_config.node-tree.yml
1
2
3
4
5
footer:
statistics:
vercount:
enable: true
src: https://domain.com/js

Then modify footer.statistics.vercount.src to the prefix of your self-hosted domain, for example, https://domain.com/js.