{"rsdb":{"rid":"239140","subhead":"","postdate":"0","aid":"164840","fid":"99","uid":"1","topic":"1","content":"
\u535a\u5ba2\u5730\u5740\uff1a\u5f80\u4e8b\u4ea6\u5982\u98ce\u7684\u535a\u5ba2<\/a><\/p> \n hexo\u5b98\u65b9\u6587\u6863<\/a><\/p> \n \u672c\u6765\u60f3\u642d\u4e00\u4e2a\u81ea\u5df1\u7684\u535a\u5ba2\uff0c\u4f46\u662f\u56e0\u4e3a\u670d\u52a1\u5668\u771f\u5fc3\u4e70\u4e0d\u8d77\uff0c\u6240\u4ee5\u5c31\u4f7f\u7528gitpages\u642d\u5efa\u4e00\u4e2a\u514d\u8d39\u7684\u535a\u5ba2\u3002<\/p> \n \u70b9\u51fb\u94fe\u63a5\u8fdb\u5165Node.js\u5b98\u7f51<\/a>, \u4e0b\u8f7dv5.5.0 Stable \u4e00\u8def\u5b89\u88c5\u5373\u53ef\u3002<\/p> \n \u5f53Node.js\u548cgit\u5b89\u88c5\u597d\uff0c\u4e0b\u9762\u5c31\u9700\u8981\u5b89\u88c5Hexo\u4e86\uff0c\u7ec8\u7aef\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4<\/p> \n <\/blockquote> \n \u5728\u684c\u9762\u65b0\u5efa\u4e00\u4e2ablog\u6587\u4ef6\u5939\uff0c\u7136\u540ecd \u5230\u90a3\u4e2a\u76ee\u5f55\u4e0b \u6b64\u65f6\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u7f51\u5740http:\/\/localhost:4000<\/a>\u76f8\u4fe1\u5c31\u53ef\u4ee5\u770b\u5230\u4e00\u4e2a\u9759\u6001\u7f51\u9875<\/p> \n \u9879\u76ee\u540d\u79f0\u4e3a\u7528\u6237\u540d.github.io<\/strong>\u7684\u56fa\u5b9a\u5199\u6cd5,\u5982\u4e0b\u56fe\u6240\u793a<\/p> \n <\/p> \n \u62f7\u8d1d\u9879\u76ee\u5730\u5740\u94fe\u63a5<\/p> \n cd \u5230 \u6253\u5f00\u540e\u6ed1\u5012\u6700\u540e\uff0c\u4fee\u6539\u6210\u4e0b\u9762\u7684\u6837\u5b50,\u4e0b\u9762\u7684coding\u662f\u6211\u5728codeing\u4e0a\u65b0\u5efa\u7684\u4e00\u4e2a\u9879\u76ee\uff0c\u56e0\u4e3a\u5728github\u4e0a\u8bbf\u95ee\u592a\u6162\uff0c\u6240\u4ee5\u6211\u65b0\u5efa\u4e86\u4e00\u4e2a\u4ed3\u5e93\u3002<\/p> \n \u6ce8\u610f\uff1a\u5728\u914d\u7f6e\u6240\u6709\u7684_config.yml\u6587\u4ef6\u65f6\uff08\u5305\u62ectheme\u4e2d\u7684\uff09\uff0c\u5728\u6240\u6709\u7684\u5192\u53f7:\u540e\u8fb9\u90fd\u8981\u52a0\u4e00\u4e2a\u7a7a\u683c\uff0c\u5426\u5219\u6267\u884chexo\u547d\u4ee4\u4f1a\u62a5\u9519.<\/p> \n <\/blockquote> \n \u4fee\u6539\u5b8c\u6210\u4e4b\u540e\u4fdd\u5b58\u9000\u51fa\uff0c\u7136\u540e\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4<\/p> \n \u5f53\u4ee5\u4e0a\u547d\u4ee4\u6267\u884c\u5b8c\u6210\u4e4b\u540e\uff0c\u5728\u6d4f\u89c8\u5668\u6253\u5f00 Hexo\u5b98\u7f51\u4e3b\u9898\u9875\u732e\u7ed9\u5927\u5bb6<\/a>\u5927\u5bb6\u53ef\u4ee5\u53bb\u4e0b\u8f7d\u81ea\u5df1\u559c\u6b22\u7684\u4e3b\u9898\u53bb\u914d\u7f6e\uff0c\u4ee5\u4e0b\u4ee5hexo-theme-next<\/a>\u4e3a\u4f8b \u5c06blog\u76ee\u5f55\u4e0b_config.yml\u91cctheme\u7684\u540d\u79f0landscape\u4fee\u6539\u4e3anext<\/p> \n \u7ec8\u7aefcd\u5230blog\u76ee\u5f55\u4e0b\u6267\u884c\u5982\u4e0b\u547d\u4ee4(\u6bcf\u6b21\u90e8\u7f72\u6587\u7ae0\u7684\u6b65\u9aa4)\uff1a<\/p> \n \u81f3\u4e8e\u66f4\u6539 \u5728 \u57df\u540d\u89e3\u6790\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u84dd\u8272\u7bad\u5934\u6307\u7684ip\u662f\u6211\u7684github\u7684\u4ed3\u5e93\u5730\u5740\uff0c\u4f60\u5728\u7ec8\u7aefping\u4e00\u4e0b\u5c31\u77e5\u9053\u4e86\uff0c\u53e6\u5916\u4e24\u4e2a\u662fcoding\u7684\u4ed3\u5e93\u5730\u5740\uff0c\u8981\u662f\u6709\u4e0d\u61c2\u7684\u6ef4\u6ef4\u6211\u73af\u5883\u914d\u7f6e<\/h2> \n
\n
\n
\u5b89\u88c5Hexo<\/h3> \n
\n
$ sudo npm install -g hexo<\/code><\/pre> \n
Hexo \u521d\u59cb\u5316<\/h3> \n
\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4<\/p> \n $ hexo init\n\n$ npm install\n\n$ hexo s<\/code><\/pre> \n
\u5173\u8054Github<\/h2> \n
\u521b\u5efaGithub\u8d26\u53f7\u5e76\u65b0\u5efa\u9879\u76ee<\/h3> \n
blog<\/code>\u6587\u4ef6\u5939\u4e0b,vim\u6253\u5f00
_config.yml<\/code>\uff0c\u547d\u4ee4\u5982\u4e0b<\/p> \n
$ vim _config.yml<\/code><\/pre> \n
deploy:\n type: git\n repository:\n github: https:\/\/github.com\/jikaipenggithub\/jikaipenggithub.github.io\n coding: https:\/\/git.coding.net\/a751122452\/a751122452.coding.me.git\n branch: master<\/code><\/pre> \n
\n
hexo clean\nhexo g\nhexo d<\/code><\/pre> \n
http:\/\/\u4f60\u7684\u7528\u6237\u540d.github.io<\/code>\uff0c\u80fd\u770b\u5230\u548c\u6253\u5f00
http:\/\/localhost:4000<\/code>\u4e00\u6837\u7684\u9875\u9762\u3002<\/p> \n
\u5b89\u88c5\u4e3b\u9898<\/h2> \n
\u7ec8\u7aefcd\u5230 blog \u76ee\u5f55\u4e0b\u6267\u884c\u5982\u4e0b\u547d\u4ee4\uff1a<\/p> \n $ git clone https:\/\/github.com\/iissnan\/hexo-theme-next themes\/next<\/code><\/pre> \n
$ hexo clean \/\/\u6e05\u9664\u7f13\u5b58\u6587\u4ef6 (db.json) \u548c\u5df2\u751f\u6210\u7684\u9759\u6001\u6587\u4ef6 (public)\n$ hexo g \/\/\u751f\u6210\u7f13\u5b58\u548c\u9759\u6001\u6587\u4ef6\n$ hexo d \/\/\u91cd\u65b0\u90e8\u7f72\u5230\u670d\u52a1\u5668<\/code><\/pre> \n
theme<\/code>\u5185\u5bb9\uff0c\u6bd4\u5982\u540d\u79f0\uff0c\u63cf\u8ff0\uff0c\u5934\u50cf\u7b49\u53bb\u4fee\u6539
blog\/_config.yml<\/code>\u6587\u4ef6\u548c
blog\/themes\/next\/_config.yml<\/code>\u6587\u4ef6\u4e2d\u5bf9\u5e94\u7684\u5c5e\u6027\u540d\u79f0\u5373\u53ef\uff0c<\/p> \n
\u7ed1\u5b9a\u4e2a\u4eba\u57df\u540d<\/h2> \n
\n
\/blog\/themes\/landscape\/source<\/code>\u76ee\u5f55\u4e0b\u65b0\u5efa\u6587\u4ef6\u540d\u4e3a\uff1a
CNAME<\/code>\u6587\u4ef6\uff0c\u6ce8\u610f\u6ca1\u6709\u540e\u7f00\u540d\uff01\u76f4\u63a5\u5c06\u81ea\u5df1\u7684\u57df\u540d\u5982\uff1a
kaipeng.net.cn<\/code>\u5199\u5165,\u5982\u679c\u6362\u4e3b\u9898\u9700\u8981\u5728\u65b0\u7684\u4e3b\u9898\u4e0b\u9762\u7684source\u4e0b\u91cd\u5efa
CNAME<\/code>,\u5e76\u5199\u5165\u57df\u540d\u3002<\/p> \n
(<\/p> \n<\/div>","orderid":"0","title":"Mac\u4e0a\u642d\u5efa\u57fa\u4e8eGithub\u7684Hexo\u535a\u5ba2","smalltitle":"","mid":"0","fname":"iOS","special_id":"0","bak_id":"0","info":"0","hits":"9014","pages":"1","comments":"0","posttime":"2017-10-16 18:18:44","list":"1508149124","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"http:\/\/images2017.cnblogs.com\/blog\/910545\/201710\/910545-20171011174025559-1392814163.png","ispic":"1","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"Mac<\/A> \u642d\u5efa<\/A> \u57fa\u4e8e<\/A> Github<\/A> Hexo<\/A> \u535a\u5ba2<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"head\";s:0:\"\";s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";}","target":"0","ip":"113.108.110.181","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":"Mac\u4e0a\u642d\u5efa\u57fa\u4e8eGithub\u7684Hexo\u535a\u5ba2","lastview":"1709245265","digg_num":"4213","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}