依次执行
npm i -g hexo
npm i
hexo server就能在本地进行调试.
baidu_analytics和gitcommit的配置项在source/_data/next.yml中, 安全起见ignore掉了
配置文件demo =>
baidu_analytics: 12313123123
gitment:
enable: true
mint: true # RECOMMEND, A mint on Gitment, to support count, language and proxy_gateway
count: true # Show comments count in post meta area
lazy: false # Comments lazy loading with a button
cleanly: false # Hide 'Powered by ...' on footer, and more
language: # Force language, or auto switch by theme
github_user: YaoZeyuan # MUST HAVE, Your Github Username
github_repo: YaoZeyuan.github.io # MUST HAVE, The name of the repo you use to store Gitment comments
client_id: 1323213123123132 # MUST HAVE, Github client id for the Gitment
client_secret: asdsadsadasdsad # EITHER this or proxy_gateway, Github access secret token for the Gitment
proxy_gateway: # Address of api proxy, See: https://github.com/aimingoo/intersect
redirect_protocol: # Protocol of redirect_uri with force_redirect_protocol when mint enabled博客地址 => http://www.yaozeyuan.online
commit信息规范 =>
| 关键字 | 功能 |
|---|---|
| feat | 添加新功能 |
| format | 调整代码格式 |
| fix | 修复错误 |
| doc | 修订文档/注释 |
hexo deploy -g