ÔõÑùÔÚGithubÉϴ²©¿Í
ÔÚÊÖÒÕÁìÓò£¬½¨Éè×Ô¼ºµÄ²©¿ÍÊÇÒ»ÖÖչʾºÍ·ÖÏí×Ô¼ºÊÖÒյĺÃÒªÁì¡£¶øÔÚÖÚ¶àµÄ½¨É販¿ÍµÄƽ̨ÖУ¬github²©¿ÍÎÞÒÉÊÇÒ»¸öºÜÊǺõÄÑ¡Ôñ£¬Ëü¼¯³ÉÔÚgithubÉÏ£¬²»µ«Àû±ãÖÎÀí¡¢°²ÅÅ¡¢Î¬»¤£¬»¹¿ÉÒÔͨ¹ýgithub pagesÃâ·ÑÐû²¼²©¿Í¡£ÏÂÃæÏÈÈÝÒ»ÏÂÔõÑùÔÚgithubÉϴ²©¿Í¡£
µÚÒ»²½£º½¨Éè¿ÍÕ»
Ê×ÏȵǼGithubÕË»§£¬½øÈë¡°Create a new repository¡±µÄÒ³Ã棬ȻºóÔÚRepository nameÄÚÀïÊäÈëÄãÒª½¨ÉèµÄ¿ÍÕ»Ãû£¬ºÃ±È¡°username.github.io¡±£¬ÆäÖÐusernameÊÇÄãÔÚGithubÉÏ×¢²áµÄÓû§Ãû£¬È»ºóµã»÷¡°Create repository¡±¾Í¿ÉÒÔ½¨ÉèÒ»¸öеĿÍÕ»¡£
µÚ¶þ²½£º½¨É販¿Í
½Ó×Å£¬ÔÚÍâµØ½¨ÉèÒ»¸öÃûΪusername.github.ioµÄÎļþ¼Ð£¬ÒÔºóµÄ²©¿ÍÎļþ¶¼´æ·ÅÔÚÕâ¸öÎļþ¼ÐÖС£ÔÚ¸ÃÎļþ¼ÐϽ¨Éèindex.htmlÎļþ£¬Õâ¸öÎļþ¾ÍÊÇÄãÍøÕ¾µÄÊ×Ò³£¬Äã¿ÉÒÔÔÚÄÚÀïÌí¼ÓÄãµÄСÎÒ˽¼ÒÐÅÏ¢¡¢²©¿ÍÎÄÕµÈÄÚÈÝ¡£
µÚÈý²½£ºÊ¹ÓÃgitÌá½»½ÓÂë
ʹÓÃgit½«²©¿ÍÎļþÍÆË͵½Ô¶³Ì¿ÍÕ»ÖУ¬Ê×ÏÈÐèÒªÌí¼ÓÔ¶³Ì¿ÍÕ»µØµã£¬Ê¹ÓÃÒÔÏÂÏÂÁ
git remote add origin git@github.com:username/username.github.io.git
µÇ¼ºó¸´ÖÆ
ÆäÖÐusernameÊÇÄãÔÚGithubÉϵÄÓû§Ãû£¬È»ºóÍÆËÍ´úÂ룬ʹÓÃÒÔÏÂÏÂÁ
git add . git commit -m "Initial commit" git push origin master
µÇ¼ºó¸´ÖÆ
ÕâЩÏÂÁî»á°ÑÄãµÄ´úÂëÍÆË͵½Ô¶³Ì¿ÍÕ»ÖС£
µÚËIJ½£ºÔÚGithub PagesÉÏÐû²¼²©¿Í
ÔÚGithubÉÏÐû²¼²©¿ÍÐèҪʹÓÃGithub Pages¹¦Ð§£¬¸Ã¹¦Ð§ÔÊÐíÄãʹÓÃGithub¿ÍÕ»ÄÚÀïµÄ´úÂëÖ±½Ó×÷Ϊһ¸ö¾²Ì¬ÍøÕ¾À´»á¼û¡£Òª¿ªÆôGithub Pages¹¦Ð§£¬ÐèÒª½øÈë¿ÍÕ»µÄSettingsÒ³Ã棬Ȼºóµã»÷¡°Choose a theme¡±À´Ñ¡ÔñÒ»¸öÖ÷ÌâÆø¸Å£¬È»ºóµã»÷¡°Select theme¡±¾Í¿ÉÒÔ¿´µ½ÄãµÄÍøÕ¾ÁË¡£
µÚÎå²½£ºÐû²¼ÎÄÕÂ
ÄãµÄ²©¿ÍÒѾ¿ÉÒÔ»á¼ûÁË£¬½ÓÏÂÀ´¾Í¿ÉÒÔÐû²¼ÎÄÕÂÁË¡£ÔÚÍâµØµÄusername.github.ioÎļþ¼ÐÏ£¬½¨ÉèÒ»¸öÃûΪ_postsµÄÎļþ¼Ð£¬ÄÚÀïÌí¼ÓÒ»¸ömarkdownÎļþ£¬ÎļþÃûÃûÌÃΪYYYY-MM-DD-article-title.md£¬ºÃ±È2019-01-01-hello-world.md£¬È»ºóÔÚÆäÖÐÌí¼ÓÎÄÕÂÄÚÈÝ£¬ÉúÑĺóʹÓÃgitÌá½»µ½Ô¶³Ì¿ÍÕ»Öм´¿É¡£
×ܽá
ÏÖÔÚ£¬ÄãÒѾ¿ÉÒÔÔÚGithub PagesÉÏÐû²¼×Ô¼ºµÄ²©¿ÍÁË£¬¿ÉÒÔÌí¼ÓСÎÒ˽¼ÒÐÅÏ¢¡¢²©¿ÍÎÄÕ¡¢ÏîÄ¿ÐÅÏ¢µÈµÈ£¬Õ¹Ê¾×Ô¼ºµÄÊÖÒÕ£¬Óë¸÷ÈË·ÖÏí×Ô¼ºµÄÐĵá£Github PagesÃâ·Ñ£¬ÊµÏÖÁ˲©¿ÍµÄ´î½¨ºÍ°²ÅÅ£¬Äܹ»ºÜºÃµØÖª×ã×ðÁú¿Ê±ÐèÇó¡£
ÒÔÉϾÍÊÇÔõÑùÔÚGithubÉϴ²©¿ÍµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡