{"id":768,"date":"2018-08-17T17:38:52","date_gmt":"2018-08-17T09:38:52","guid":{"rendered":"http:\/\/43.142.23.169\/?p=768"},"modified":"2018-08-17T17:38:52","modified_gmt":"2018-08-17T09:38:52","slug":"github-vblog","status":"publish","type":"post","link":"https:\/\/blog.240996.xyz\/index.php\/2018\/08\/17\/github-vblog\/","title":{"rendered":"\u4f7f\u7528github\u642d\u5efa\u52a8\u6001\u7684\u4e2a\u6027\u5316\u535a\u5ba2"},"content":{"rendered":"<h2>\u524d\u8a00<\/h2>\n<p>\u672c\u6587\u4ecb\u7ecd\u4f7f\u7528github gist api \u65e0\u9700\u4efb\u4f55\u670d\u52a1\u5668\uff0c\u642d\u5efa\u4e00\u4e2a\u53ef\u52a8\u6001\u53d1\u5e03\u6587\u7ae0\u7684\u4e2a\u4eba\u535a\u5ba2\uff0c\u535a\u5ba2\u57fa\u4e8e GitHub Pages \u4e0e Github API \u5b9e\u73b0\u65e0\u540e\u53f0\uff0c\u53ef\u52a8\u6001\u53d1\u5e03\u535a\u5ba2\u7684\u7cfb\u7edf\u3002\u535a\u5ba2\u6570\u636e\u50a8\u5b58\u4e8egist \u901a\u8fc7Github API \u8fdb\u884c\u589e\u5220\u6539\u67e5\u3002<br \/>\n\u6f14\u793a\u5730\u5740\uff1a<a href=\"https:\/\/github-laziji.github.io\">https:\/\/github-laziji.github.io<\/a><br \/>\nGithub\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/GitHub-Laziji\/vblog\">https:\/\/github.com\/GitHub-Laziji\/vblog<\/a><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.240996.xyz\/wp-content\/uploads\/2018\/08\/SqJ1.png\"\/><\/p>\n<h2>\u5feb\u901f\u642d\u5efa<\/h2>\n<p>\u642d\u5efa\u535a\u5ba2\u53ea\u97003\u6b65<\/p>\n<p>1\u3001\u70b9\u51fbgithub\u5934\u50cf\u65c1\u8fb9\u7684 &#8220;+&#8221; \u53f7 \u9009\u62e9 Import repository\u514b\u9686\u5730\u5740\u586b <a href=\"https:\/\/github.com\/GitHub-Laziji\/GitHub-Laziji.github.io\">https:\/\/github.com\/GitHub-Laziji\/GitHub-Laziji.github.io<\/a> \u9879\u76ee\u540d\u586b\uff1a<code>\u4f60\u7684\u7528\u6237\u540d.github.io<\/code><br \/>\n2\u3001\u514b\u9686\u5b8c\u6210\u540e \u4fee\u6539\u6587\u4ef6 \/static\/configuration.json \u4e2d\u7684 githubUsername \u4e3a\u81ea\u5df1\u7684github\u7528\u6237\u540d<br \/>\n\u7c7b\u4f3c\u6f14\u793a\u5730\u5740\u5176\u4e2d GitHub-Laziji \u4e3a\u7528\u6237\u540d<\/p>\n<p>\u73b0\u5728 <a href=\"https:\/\/\u4f60\u7684\u7528\u6237\u540d.github.io\">https:\/\/\u4f60\u7684\u7528\u6237\u540d.github.io<\/a> \u5c31\u662f\u4f60\u7684\u4e2a\u4eba\u535a\u5ba2\u4e86\uff0c\u4f8b\u5982<a href=\"https:\/\/github-laziji.github.io\">https:\/\/github-laziji.github.io<\/a>\uff08\u53ef\u80fd\u9700\u8981\u7b49\u4e00\u4e24\u5206\u949f\uff0c\u5e76\u6309F5\u5f3a\u5236\u5237\u65b0\u624d\u80fd\u51fa\u6765\uff09<\/p>\n<p>3\u3001\u83b7\u53d6Token\u5e76\u7ed1\u5b9a<br \/>\n\u53d1\u5e03\u6587\u7ae0\u548c\u4fee\u6539\u535a\u5ba2\u67d0\u4e9b\u8bbe\u7f6e\u9700\u8981\u7ed1\u5b9atoken\uff0c\u5728 github &gt; settings &gt; Developer settings &gt; Personal access tokens \u52fe\u9009gist \u548c repo\u6743\u9650\uff0c\u83b7\u53d6Token\uff0c\u70b9\u51fb\u535a\u5ba2\u5de6\u4e0b\u89d2\u7ed1\u5b9a\u3002<\/p>\n<h2>\u7ed1\u5b9a\u81ea\u5b9a\u4e49\u57df\u540d<\/h2>\n<p>\u5982\u679c\u4f60\u60f3\u7528Github\u4e8c\u7ea7\u57df\u540d\u8bbf\u95ee\uff0c\u5c31\u65e0\u89c6\u8fd9\u4e00\u6b65\uff0c\u5982\u679c\u4f60\u60f3\u7528\u81ea\u5df1\u7684\u57df\u540d\u8bbf\u95ee\uff0c\u8bf7\u7ee7\u7eed\u770b\u3002<\/p>\n<p>\u5148\u89e3\u6790\u57df\u540d\u7684CNAME\u8bb0\u5f55\u5230\u4f60\u7684Git\u4e8c\u7ea7\u57df\u540d<br \/>\n<img decoding=\"async\" src=\"https:\/\/blog.240996.xyz\/wp-content\/uploads\/2018\/08\/SQwm.png\" \/><\/p>\n<p>\u7136\u540e\u8bbf\u95ee\u4f60\u7684\u535a\u5ba2Git\u9879\u76ee\u5730\u5740\uff0c\u70b9\u51fbCreate new file\u65b0\u5efa\u6587\u4ef6\uff0c\u547d\u540dCNAME\uff0c\u5185\u5bb9\u5199\u4e0a\u4f60\u7684\u57df\u540d\uff0c\u4e0d\u8981http\u7b49\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.240996.xyz\/wp-content\/uploads\/2018\/08\/Sgfa.png\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/blog.240996.xyz\/wp-content\/uploads\/2018\/08\/SoL7.png\"\/><\/p>\n<p>\u7a0d\u7b49\u4e00\u4f1a\u513f\u540e\u5c31\u53ef\u4ee5\u901a\u8fc7\u81ea\u5df1\u7684\u57df\u540d\u8bbf\u95ee\u535a\u5ba2\u4e86<\/p>\n<p>\u672c\u6587\u94fe\u63a5\uff1ahttps:\/\/agint.me\/82.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u672c\u6587\u4ecb\u7ecd\u4f7f\u7528github gist api \u65e0\u9700\u4efb\u4f55\u670d\u52a1\u5668\uff0c\u642d\u5efa\u4e00\u4e2a\u53ef\u52a8\u6001\u53d1\u5e03\u6587\u7ae0\u7684\u4e2a\u4eba\u535a\u5ba2\uff0c\u535a\u5ba2\u57fa\u4e8e  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":776,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-768","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-exp"],"_links":{"self":[{"href":"https:\/\/blog.240996.xyz\/index.php\/wp-json\/wp\/v2\/posts\/768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.240996.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.240996.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.240996.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.240996.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=768"}],"version-history":[{"count":0,"href":"https:\/\/blog.240996.xyz\/index.php\/wp-json\/wp\/v2\/posts\/768\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.240996.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.240996.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.240996.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}