博客源码,首次运行步骤
npm install -g cnpm --registry=https://registry.npm.taobao.org
配置好使用cnpm
进入hexo-blog-source目录
cnpm install -g hexo-cli
cnpm install hexo --save
找个空目录执行初始化,然后把node_modules复制到hexo-blog-source下
hexo init
git clone https://github.com/dengtongcai/maupassant-hexo.git themes/maupassant
cnpm install hexo-renderer-pug --save
cnpm install hexo-renderer-sass --save
《_config.yml 》里的post_asset_folder这个选项设置为true
npm install hexo-asset-image --save
cnpm i -S hexo-helper-qrcode
hexo g
hexo s
本地访问 http://localhost:4000 即可查看首页内容
cnpm install --save hexo-deployer-git
hexo deploy
git push --quiet https://[email protected]/dengtongcai/hexo-blog-source.git