构建自己的Hexo博客过程
1.安装hexo,初始化博客
参考:
2.安装美化主题
选择hexo-theme-yelee
主题,配置自己的博客。
参考:
3.部署到个人服务器
4.插件
3.1文章添加 emoji 表情符
npm install hexo-filter-github-emojis --save
根目录下的配置文件 _config.yml
中进行配置,还可以添加自定义的表情符
githubEmojis:
enable: true
className: github-emoji
unicode: false
localEmojis:
your_emoji_1:
src: http://your/emoji/path/img1.png
your_emoji_2:
src: http://your/emoji/path/img2.png
简单用格式表达表情符 :your_emoji_1:
:your_emoji_2:
3.2静态搜索功能插件
npm install hexo-generator-tipue-search-json --save
https://github.com/theme-next/hexo-generator-searchdb
3.3动态修改更新博客
npm install -g browser-sync
3.4hexo的后台管理页面
类似hexo博客的后台管理,更方便编写博客。
npm install --save hexo-admin
hexo server -d
open http://localhost:4000/admin/
https://github.com/jaredly/hexo-admin
3.5 hexo使用RSS功能
安装对应插件 https://github.com/hexojs/hexo-generator-feed
npm install hexo-generator-feed --save