因此,github Pages就能夠被認爲是用戶編寫、託管的github上的靜態網頁css
安裝cnpm命令 npm install cnpm -g --registry=https://registry.npm.taobao.org 而後在執行 cnpm i -g hexo
hexo -v
hexo init
deploy: type: git repo: https://github.com/YourgithubName/YourgithubName.github.io.git branch: master
命令1生成部署文件 hexo deploy 命令2,而後部署 hexo generate 命令3,而後運行 hexo server
hf@hf-PC MINGW64 /d/git-blog $ hexo deploy INFO Start processing INFO Files loaded in 347 ms INFO Generated: index.html INFO Generated: archives/index.html INFO Generated: archives/2018/04/index.html INFO Generated: fancybox/jquery.fancybox.css INFO Generated: fancybox/fancybox_sprite.png INFO Generated: fancybox/fancybox_loading@2x.gif INFO Generated: fancybox/fancybox_loading.gif INFO Generated: fancybox/blank.gif INFO Generated: fancybox/fancybox_sprite@2x.png INFO Generated: archives/2018/index.html INFO Generated: fancybox/fancybox_overlay.png INFO Generated: fancybox/jquery.fancybox.pack.js INFO Generated: fancybox/jquery.fancybox.js INFO Generated: css/fonts/FontAwesome.otf INFO Generated: fancybox/helpers/jquery.fancybox-buttons.js INFO Generated: js/script.js INFO Generated: fancybox/helpers/jquery.fancybox-media.js INFO Generated: css/style.css INFO Generated: fancybox/helpers/jquery.fancybox-buttons.css INFO Generated: css/fonts/fontawesome-webfont.eot INFO Generated: fancybox/helpers/jquery.fancybox-thumbs.css INFO Generated: fancybox/helpers/jquery.fancybox-thumbs.js INFO Generated: css/fonts/fontawesome-webfont.woff INFO Generated: fancybox/helpers/fancybox_buttons.png INFO Generated: css/images/banner.jpg INFO Generated: css/fonts/fontawesome-webfont.ttf INFO Generated: css/fonts/fontawesome-webfont.svg INFO Generated: 2018/04/02/hello-world/index.html INFO 28 files generated in 828 ms hf@hf-PC MINGW64 /d/git-blog $ hexo generate INFO Start processing INFO Files loaded in 234 ms INFO 0 files generated in 261 ms hf@hf-PC MINGW64 /d/git-blog $ hexo server INFO Start processing INFO Hexo is running at http://localhost:4000/. Press Ctrl+C to stop.