{"id":30559,"date":"2022-12-18T17:19:10","date_gmt":"2022-12-18T09:19:10","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=30559"},"modified":"2022-12-18T17:19:26","modified_gmt":"2022-12-18T09:19:26","slug":"use-github-pages","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/use-github-pages.html","title":{"rendered":"\u4f7f\u7528 Github Pages \u53d1\u5e03\u4f60\u7684\u9879\u76ee\u6587\u6863"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u4f60\u53ef\u80fd\u6bd4\u8f83\u719f\u6089\u5982\u4f55\u7528 Github Pages \u6765\u5206\u4eab\u4f60\u7684\u5de5\u4f5c\uff0c\u53c8\u6216\u8bb8\u4f60\u770b\u8fc7\u4e00\u5802\u6559\u4f60\u5efa\u7acb\u4f60\u7684\u7b2c\u4e00\u4e2a Github Pages \u7f51\u7ad9\u7684\u6559\u7a0b\u3002\u8fd1\u671f Github Pages \u7684\u6539\u8fdb\u4f7f\u5f97\u4ece\u4e0d\u540c\u7684\u6570\u636e\u6e90\u6765\u53d1\u5e03\u60a8\u7684\u7f51\u7ad9\u66f4\u52a0\u7684\u65b9\u4fbf\uff0c\u5176\u4e2d\u7684\u6765\u6e90\u4e4b\u4e00\u5c31\u662f\u4f60\u7684\u4ed3\u5e93\u7684 \/docs \u76ee\u5f55\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u6587\u6863\u7684\u8d28\u91cf\u662f\u4e00\u4e2a\u8f6f\u4ef6\u9879\u76ee\u5065\u5eb7\u53d1\u5c55\u7684\u6807\u5fd7\u3002\u5bf9\u4e8e\u5f00\u6e90\u9879\u76ee\u6765\u8bf4\uff0c\u7ef4\u62a4\u4e00\u4e2a\u53ef\u9760\u800c\u4e0d\u51fa\u9519\u7684\u77e5\u8bc6\u5e93\u3001\u8be6\u7ec6\u8bf4\u660e\u6240\u6709\u7684\u7ec6\u8282\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002\u7cbe\u5fc3\u7b56\u5212\u7684\u6587\u6863\u53ef\u4ee5\u8ba9\u589e\u52a0\u9879\u76ee\u7684\u4eb2\u5207\u611f\uff0c\u63d0\u4f9b\u4e00\u6b65\u6b65\u7684\u6307\u5bfc\u5e76\u4fc3\u8fdb\u5404\u79cd\u65b9\u5f0f\u7684\u5408\u4f5c\u53ef\u4ee5\u63a8\u52a8\u5f00\u6e90\u8f6f\u4ef6\u5f00\u53d1\u7684\u534f\u4f5c\u8fdb\u7a0b\u3002<\/p>\n

\u5728 Web \u4e0a\u6258\u7ba1\u4f60\u7684\u6587\u6863\u662f\u4e00\u4e2a\u6d88\u8017\u65f6\u95f4\u7684\u6311\u6218\uff0c\u800c\u4e14\u5bf9\u4e8e\u5b83\u7684\u53d1\u5e03\u548c\u7ef4\u62a4\u4e5f\u6ca1\u6709\u7701\u4e8b\u7684\u529e\u6cd5\uff0c\u7136\u800c\u8fd9\u662f\u5e76\u975e\u4e0d\u53ef\u907f\u514d\u7684\u3002\u9762\u5bf9\u591a\u79cd\u4e0d\u540c\u7684\u53d1\u5e03\u5de5\u5177\uff0c\u53c8\u662f FTP \u670d\u52a1\u5668\uff0c\u53c8\u662f\u6570\u636e\u5e93\uff0c\u6587\u4ef6\u4ee5\u5404\u79cd\u4e0d\u540c\u7684\u65b9\u5f0f\u5b58\u653e\u5728\u4e0d\u540c\u7684\u4f4d\u7f6e\u4e0b\uff0c\u800c\u8fd9\u4e9b\u90fd\u9700\u8981\u4f60\u624b\u52a8\u6765\u8c03\u6574\u3002\u9700\u8981\u8bf4\u660e\u7684\u662f\uff0c\u4f20\u7edf\u7684 Web \u53d1\u5e03\u65b9\u5f0f\u63d0\u4f9b\u4e86\u65e0\u4e0e\u4f26\u6bd4\u7684\u7075\u6d3b\u6027\u548c\u6027\u80fd\uff0c\u4f46\u662f\u5728\u8bb8\u591a\u60c5\u51b5\u4e0b\uff0c\u8fd9\u662f\u4ee5\u727a\u7272\u7b80\u5355\u6613\u7528\u4e3a\u4ee3\u4ef7\u7684\u3002<\/p>\n

\u5f53\u4f5c\u4e3a\u6587\u6863\u4f7f\u7528\u65f6\uff0c\u9ebb\u70e6\u66f4\u5c11\u7684\u65b9\u5f0f\u663e\u7136\u66f4\u5bb9\u6613\u53bb\u7ef4\u62a4\u3002<\/p>\n

GitHub Pages \u53ef\u4ee5\u4ee5\u6307\u5b9a\u7684\u65b9\u5f0f\u4e3a\u4f60\u7684\u9879\u76ee\u521b\u5efa\u7f51\u7ad9\uff0c\u8fd9\u4f7f\u5f97\u5b83\u5929\u7136\u5730\u9002\u5408\u53d1\u5e03\u548c\u7ef4\u62a4\u6587\u6863\u3002\u56e0\u4e3a Github Pages \u652f\u6301 Jekyll\uff0c\u6240\u4ee5\u4f60\u53ef\u4ee5\u4f7f\u7528\u7eaf\u6587\u672c\u6216 Markdown \u6765\u4e66\u5199\u4f60\u7684\u6587\u6863\uff0c\u4ece\u800c\u964d\u4f4e\u4f60\u7ef4\u62a4\u7684\u6210\u672c\u3001\u51cf\u5c11\u7ef4\u62a4\u65f6\u7684\u969c\u788d\u3002Jekyll \u8fd8\u652f\u6301\u8bb8\u591a\u6709\u7528\u7684\u5de5\u5177\u6bd4\u5982\u53d8\u91cf\u3001\u6a21\u677f\u3001\u4ee5\u53ca\u81ea\u52a8\u4ee3\u7801\u9ad8\u4eae\u7b49\u7b49\uff0c\u5b83\u4f1a\u7ed9\u4f60\u66f4\u591a\u7684\u7075\u6d3b\u6027\u800c\u4e0d\u4f1a\u589e\u52a0\u590d\u6742\u6027\uff0c\u8fd9\u4e9b\u4f60\u5728\u4e00\u4e9b\u7b28\u91cd\u7684\u5e73\u53f0\u662f\u89c1\u4e0d\u5230\u7684\u3002<\/p>\n

\u6700\u91cd\u8981\u7684\u662f\uff0c\u5728 Github \u4e0a\u4f7f\u7528 GitHub Pages \u610f\u5473\u7740\u4f60\u7684\u6587\u6863\u548c\u4ee3\u7801\u53ef\u4ee5\u4f7f\u7528\u8bf8\u5982 Issues \u548c Pull Requests \u6765\u786e\u4fdd\u5b83\u5f97\u5230\u5e94\u6709\u7684\u9ad8\u6c34\u5e73\u7ef4\u62a4\uff0c\u800c\u4e14\u56e0\u4e3a GitHub Pages \u5141\u8bb8\u60a8\u53d1\u5e03\u4ee3\u7801\u5e93\u4e3b\u5206\u652f\u4e0a\u7684 \/docs \u76ee\u5f55\uff0c\u8fd9\u6837\u60a8\u5c31\u53ef\u4ee5\u5728\u540c\u4e00\u5206\u652f\u540c\u65f6\u7ef4\u62a4\u4f60\u7684\u4ee3\u7801\u5e93\u53ca\u5176\u6587\u6863\u3002<\/p>\n

\u73b0\u5728\u5f00\u59cb\uff01<\/strong><\/div>\n

\u53d1\u5e03\u4f60\u7684\u7b2c\u4e00\u4e2a\u6587\u6863\u9875\u9762\u53ea\u9700\u8981\u77ed\u77ed\u51e0\u5206\u949f\u3002<\/p>\n

    \n
  1. \u5728\u4f60\u7684\u4ed3\u5e93\u7684\u4e3b\u5206\u652f\u91cc\u521b\u5efa\u4e00\u4e2a \/docs\/index.md \u6587\u4ef6\u3002<\/li>\n
  2. \u628a\u4f60\u7684\u5185\u5bb9\u4ee5 Jekyll \u683c\u5f0f\u6dfb\u52a0\u8fdb\u53bb\uff0c\u5e76\u63d0\u4ea4\u4f60\u7684\u4fee\u6539\u3002
    \n\"\u4f7f\u7528<\/li>\n
  3. \u67e5\u770b\u4f60\u7684\u4ed3\u5e93\u7684\u8bbe\u7f6e\u5206\u652f\u7136\u540e\u9009\u62e9\u4e3b\u5206\u652f \/docs \u76ee\u5f55\uff0c\u5c06\u5176\u8bbe\u7f6e\u4e3a GitHub Pages \u7684\u6e90 \uff0c\u70b9\u51fb\u4fdd\u5b58\uff0c\u4f60\u5c31\u641e\u5b9a\u4e86\u3002<\/li>\n<\/ol>\n

    \"use-github-pages-1\"<\/p>\n

    GitHub Pages \u5c06\u4f1a\u4ece\u4f60\u7684 \/docs \u76ee\u5f55\u4e2d\u8bfb\u53d6\u5185\u5bb9\uff0c\u8f6c\u6362 index.md \u4e3a HTML\u3002\u7136\u540e\u628a\u5b83\u53d1\u5e03\u5230\u4f60\u7684 GitHub Pages \u7684 URL \u4e0a\u3002<\/p>\n

    \u8fd9\u6837\u5c06\u4f1a\u521b\u5efa\u5e76\u8f93\u51fa\u4e00\u4e2a\u6700\u57fa\u7840\u7684 HTML \uff0c\u800c\u4e14\u4f60\u53ef\u4ee5\u4f7f\u7528 Jekyll \u7684\u81ea\u5b9a\u4e49\u6a21\u677f\u3001CSS \u548c\u5176\u4ed6\u7279\u6027\u3002\u5982\u679c\u60f3\u8981\u770b\u6240\u6709\u7684\u53ef\u80fd\uff0c\u4f60\u53ef\u4ee5\u770b\u770b GitHub Pages Showcase\u3002<\/p>\n

    \u539f\u6587\u6765\u81ea\uff1ahttps:\/\/linux.cn\/article-7761-1.html<\/a><\/p>\n

    \u672c\u6587\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/use-github-pages.html<\/a>\u7f16\u8f91\uff1a\u6768\u5e06\uff0c\u5ba1\u6838\u5458\uff1a\u51af\u742a<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

    \u4f60\u53ef\u80fd\u6bd4\u8f83\u719f\u6089\u5982\u4f55\u7528 Github Pages \u6765\u5206\u4eab\u4f60\u7684\u5de5\u4f5c\uff0c\u53c8\u6216\u8bb8\u4f60\u770b\u8fc7\u4e00\u5802\u6559\u4f60\u5efa\u7acb\u4f60\u7684\u7b2c\u4e00\u4e2a Github Pages \u7f51\u7ad9\u7684\u6559\u7a0b\u3002\u8fd1\u671f Github Pages \u7684\u6539\u8fdb\u4f7f\u5f97\u4ece\u4e0d\u540c\u7684\u6570\u636e\u6e90\u6765\u53d1\u5e03\u60a8\u7684\u7f51\u7ad9\u66f4\u52a0\u7684\u65b9\u4fbf\uff0c\u5176\u4e2d\u7684\u6765\u6e90\u4e4b\u4e00\u5c31\u662f\u4f60\u7684\u4ed3\u5e93\u7684 \/docs \u76ee\u5f55\u3002<\/p>\n","protected":false},"author":63,"featured_media":30758,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-30559","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/30559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=30559"}],"version-history":[{"count":11,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/30559\/revisions"}],"predecessor-version":[{"id":259552,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/30559\/revisions\/259552"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/30758"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=30559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=30559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=30559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}