Hexo(四) 添加动态背景效果canvas-nest

效果就如同你看到的背景一样,这种背景在一些博客中经常会看到,那么如何来进行设置呢?

非常简单,在 next theme 主题下,找到 _config.yml 文件,然后在文件末尾添加:

1
2
3
4
5
6
# --------------------------------------------------------------
# background settings
# --------------------------------------------------------------
# add canvas-nest effect
# see detail from https://github.com/hustcc/canvas-nest.js
canvas_nest: true

执行:hexo clean; hexo g; hexo s 就可以看到效果了!

-------------本文结束谢谢欣赏-------------
Alice wechat