Hexo 博客搭建
本文主要记录在搭建自己的个人博客时搜索的相关文章链接.
环境配置
相关配置插件
发布
创建\编写\发布 博客小脚本,参见文末
- 创建Git仓库
- 编写博客
- 发布
问题解决
- 不算子统计数据不显示
参考内容引用优化
Matery 主题: 解决点击链接位置偏移的问题, 一下配置在文章中开启目录生才生效
文章内引用编号设置锚点
文件[<sup>1</sup>](#refer-anchor-1)
参考内容链接设置
<h5 id ='refer-anchor-1'><a href ="https://www.cnblogs.com/songjianming/articles/12497740.htm">[1]: Mac中环境变量加载顺序</a></h5>
附录
编写博客小脚本
#!/bin/sh
read -p "创建(N)/发布(P)/本地发布(S)博客:" type
if [ $type = 'N' ]
then
read -p "博客名称:" name
echo `hexo new $name`
open -a /Applications/Typora.app $path/source/_posts/$name.md
echo 'N'
elif [ $type = 'P' ]
then
hexo clean
hexo g
hexo d
echo "finished!"
elif [ $type = 'S' ]
then
hexo s
echo "finished!"
else
echo "see you again!"
fi