为了做个自己的知识管理,用了 Hexo ,但是没有发现自己心仪的主题,就自己做了一个。
预览地址: https://itabyss.github.io/
教程文章:https://www.cnblogs.com/yyhh/p/11058985.html
mkdir ~/blog/hexo
cd ~/blog/hexo
hexo init
git clone https://github.com/ITAbyss/hexo-wiki.git themes/hexo-wiki
首先得有『node.js』来执行『npm』
- hexo-asset-image 获取文件相对路径下同名文件夹的图片
npm install hexo-directory-category --save
『_config.yml』其中必要修改的有以下
# 获取文件相对目录的图片
post_asset_folder: true
# 不需要高亮,使用了highlight.js
highlight:
enable: false
line_number: false
auto_detect: false
tab_replace:
# 修改主题
theme: hexo-wiki