0%

Next主题增加动态背景并设置透明化

编辑主题配置

编辑 themes/next/_config.yml

1
2
3
4
5
6
7
8
#canvas_nest: false
canvas_nest:
enable: true
onmobile: true # display on mobile or not
color: '0,0,255' # RGB values, use ',' to separate
opacity: 0.5 # the opacity of line: 0~1
zIndex: -1 # z-index property of the background
count: 99 # the number of lines
重新部署
1
hexo clean && hexo g && hexo d