背景
Hexo和NexT的版本如下:
MacOS: 12.0.1
Hexo: 5.4.0
NexT: 8.2.2
由于在配置博客中选择的Hexo的next主题,由于该主题较为单调,所以希望添加一张背景图片。
因为版本比较新,尝试了许多其他人的方法,发现并不可行,但在themes/next/_config.yml
配置文件搜索custom时发现了以下代码:
# Define custom file paths.
# Create your custom files in site directory `source/_data` and uncomment needed files below.
custom_file_path:
#head: source/_data/head.njk
#header: source/_data/header.njk
#sidebar: source/_data/sidebar.njk
#postMeta: source/_data/post-meta.njk
#postBodyEnd: s