GitHub Pagesã¨Jekyllã§ãã¼ã ãã¼ã¸ãä½ã
GitHub Pagesã§ç°¡åãªãã¼ã ãã¼ã¸ãªãä½ãããããªæ°ãããã¨æãç«ã£ãã®ã§ããã®æã«è¡ã£ããã¨ã®ã¡ã¢ã§ãã
åºæ¬çã«ã¯ãã®ãã¼ã¸ã®æé ã«æ²¿ã£ã¦ãã£ã¦ããã°ã§ããã¨æãã¾ãã
ããã¤ãç°ãªãç¹ã追å ã§å¿ è¦ã ã£ããã¨ãªã©ãèªåã®ã¡ã¢çãªãã®ãæ¸ãã¦ããã¾ãã
ãã®ä½æ¥ãããåæã¨ãã¦Gitã¨Visual Studio Codeã¯ä½¿ããç¶æ ã«ãã¦ããã¾ããããã®ããæ¹ãæ¸ãã¦ãããã¼ã¸ã¯ããããããã¨æãã®ã§çç¥ãã¾ãã
ãJekyllãã¯Rubyã§åãéçãµã¤ãã¸ã§ãã¬ã¼ã¿ã¼ã§ããèªã¿ããã¯ãã¸ãã«ãã§ããGitHub Pagesã§ä½¿ãããã¤ã§ãã
Jekyll ã使ç¨ã㦠GitHub Pages ãµã¤ããä½æãã - GitHub Docs
Rubyã®ã¤ã³ã¹ãã¼ã«
ä»åãèªåã®ç°å¢ã¯Macã§ããåèã®ãµã¤ãã ã¨archlinuxã使ã£ã¦ãã¦ããã¼ã¸ã§ã³3系統ã®Rubyãå ¥ã£ã¦ããåæã§ã®æ¹æ³ã¨ãªã£ã¦ãã¾ããmacOSã®å ´åå¿ è¦ãªãã¨æãã¾ããããç¹ã«ä½ãèããæ¸ãã¦ããéãã«Ruby Version Manager (RVM)ã使ã£ã¦ããã¾ãã
RVMã§Ruby 2.7ãã¤ã³ã¹ãã¼ã«ãã¦ãæ¢å®ã2.7ã«è¨å®ãã¾ãã
Jekyllã¨Bundlerã®ã¤ã³ã¹ãã¼ã«
Bundlerã¯gemã®ä¾åé¢ä¿ã解決ãã¦ããããã¼ã«ã¿ããã§ããæ¸ãã¦ããéãã«ã¤ã³ã¹ãã¼ã«ãã¾ãããã®å¾ã®æé ã§ããmyblogãã¨ãããã£ã¬ã¯ããªã«Jekyllã®ããã¸ã§ã¯ããä½æããæé ãæ¸ããã¦ãã¾ãããä»åã¯ä½¿ããã³ãã¬ã¼ãã決ã¾ã£ã¦ããã®ã§ãããã¯å®è¡ãã¾ããã
Basically Basic Jekyll Theme
GitHub Pagesã§ç´æ¥ãµãã¼ããã¦ããJekyllã®ãã¼ããããã¾ãã
Supported themes | GitHub Pages
ä»åã¯ãBasically Basicãã¨ãããMinimaãã®æ´¾çï¼ã使ãã¾ãã
GitHub - mmistakes/jekyll-theme-basically-basic: Your new Jekyll default theme.
ãã³ãã¬ã¼ãã¯ãããããã£ã¦ãæ¢ãããµã¤ããè¤æ°ãããææã®ãã®ãããã¾ããç§ã¯ãJekyll Theme 2023 freeãã§æ¤ç´¢ãã¾ããã以ä¸ã®ãã¼ã¸ã«ããã¤ãã®ã£ã©ãªã¼ãç´¹ä»ããã¦ãã¾ãã
ãã¼ã | Jekyll ⢠ã·ã³ãã«ã§ãããã°ã®ãããªãéçãµã¤ã
ãã¼ã«ã«ã§ã®å®è¡ç°å¢ã®æ§ç¯
æ¬æ¥å¥ã«ç¨æããå¿ è¦ããªãã¨æãã¾ãããä»åJekyllãã©ããªãã®ãã»ã¨ãã©ããã£ã¦ããªãã£ãã®ã§ãã¨ãããã触ã£ã¦ã¿ãç°å¢ã¨ãã¦ãã¼ã«ã«ç¨ã®ãã©ã«ããç¨æãã¾ãããã®ãã©ã«ãã«ãã¼ããcloneãã¾ãã
macOSã§ã©ãã«ãã©ã«ããä½ãã®ãã¨ã¡ãã£ã¨æ©ã¿ã¾ãããããã¼ã ã®ç´ä¸ã«ä½ãã¾ããã
ãã¼ã«ã«Webãµã¼ãã¼ã®å®è¡
$ bundle exec jekyll server
ã§å®è¡ãã¾ããããã§ãã¼ã«ã«ã§ã¯ãhttp://127.0.0.1:4000/ãã§ã¢ã¯ã»ã¹ã§ããã¯ãã§ãã
Could not find gem 'jekyll-paginate (~> 1.1)'
ã¨ããã¨ã©ã¼ãåºãã®ã§
gem install jekyll-paginate
ãå®è¡ãã¦è§£æ±ºãã¾ããããããjekyll-sitemapãã§ãåããããªã¨ã©ã¼ãåºãã¨æãã®ã§ãããåæ§ã«è§£æ±ºãã¾ãã
gem install jekyll-sitemap
ããã§
$ bundle exec jekyll server
ãå®è¡ããã¨ãã¼ã«ã«ã§ã¯ãhttp://127.0.0.1:4000/ãã§ã¢ã¯ã»ã¹ã§ãã¾ããä¸å¿å®æ©ã®ã¹ããã©ã§ã確èªãããã®ã§ããã¡ã¤ã¢ã¦ã©ã¼ã«ã®ãã¼ããé¤å¤è¨å®ãã¾ãã
MacOSã®ãã¼ãéæ¾ | ThunderMiracle's Blog
ããã§ãã¢ã¯ã»ã¹ã§ãã¾ããã§ãããlocalhostã®ã¢ãã¬ã¹ä»¥å¤ã«ãã¤ã³ãããã¦ããªããã¨ãåå ã®ãããªã®ã§ã以ä¸ã®ããã«å®è¡ãã¦å©ç¨å¯è½ãªã¢ãã¬ã¹ãã¹ã¦ã«ãã¤ã³ããããããã«ãã¾ãã
bundle exec jekyll server --host=0.0.0.0
ããã§ã¹ãããããã¢ã¯ã»ã¹ã§ããããã«ãªãã¾ãã
macOSã§ipconfig
macOSã§æ®éã«ipconfigã¨æã£ã¦ãIPã¢ãã¬ã¹ã¯è¡¨ç¤ºããã¾ããã§ãããipconfigã使ãæ¹æ³ã¯é¢åãªã®ã§ä»£ããã«ãããã¯ã¼ã¯ç¶æ³ã確èªããifconfigã使ãã¾ãã
GitHub Pages
GitHubã«ãªãã¸ããªãä½æãã¾ãããªãã¸ããªã®ååã¯ãæé ã®åèãµã¤ãã«æ¸ããã¦ããããã«ãusername.github.ioãã«ãã¾ããgithubã®ã¦ã¼ã¶ã¼åããhogehogeããªãã°ããhogehoge.github.ioãã¨ããååã®ãªãã¸ããªãä½æãã¾ãã
ãã®ãªãã¸ããªãã¯ãã¼ã³ãã¦ãã¦ãããã«ãã¼ã«ã«ã§ä½æãã¦ãããã¡ã¤ã«ãã³ãã¼ãã¾ãã
å¿ è¦ãªãã¡ã¤ã«ã¯ããã«æ¸ããã¦ãã以ä¸ã®ãã¤ã«ãªãã¾ãã Â
- _layouts
- _includes
- assets
- _sass
- _data/theme.yml
- _config.yml
注æç¹ã¨ãã¦ãGemfileãã¨ãGemfile.lockãã¯å¿ ãå«ããªãããã«ãã¾ãããããå«ãã¦ãã¾ãã¨ãGitHub Pagesã®ãã«ãã§ã¨ã©ã¼ã¨ãªãã¾ãã
ãã¨ã¯ãfaviconããã£ãã»ããããã®ã§ã以ä¸ã®ãµã¤ããªã©ã§ä½æãã¦ç½®ãã¦ããã¾ãããã
ä»åGitHubã¯SSHã«ããã®ã§ã以ä¸ã®ãã¼ã¸ãªã©ãåèã«è¨å®ãã¦ãcommitãã¦pushãã¾ãã
GitHubã«SSHæ¥ç¶ããæ¹æ³ï¼(ãã¼ã®ä½æããpushã¾ã§è§£èª¬) | ã³ã¼ãã©ã¤ã¯
GitHub Pagesã®ç¦æ¢ãããç¨é
GitHub Pages ã«ã¤ã㦠- GitHub Docs
GitHub Pages ã¯ããªã³ã©ã¤ã³ ãã¸ãã¹ãeã³ãã¼ã¹ ãµã¤ãã主ã«ååå¼ã®åæ»åã¾ãã¯ãµã¼ãã¹ã¨ãã¦ã®åç¨ã½ããã¦ã§ã¢ (SaaS) ã®æä¾ã®ã©ã¡ãããç®çã¨ããããã®ä»ã® Web ãµã¤ããéå¶ããããã®ç¡æã® Web ãã¹ãã£ã³ã° ãµã¼ãã¹ã¨ãã¦ã®ä½¿ç¨ãæå³ãããã®ã§ã¯ãªããã¾ããã®ãããªä½¿ç¨ã許å¯ãããã®ã§ãããã¾ããã
ä¸è¨ã®æç« ã ã¨æ¥æ¬èªã¨ãã¦å°ãä¸èªç¶ãªã®ã§åæãè¦ã¦ã¿ããã¨æãã¾ãã
GitHub Pages is not intended for or allowed to be used as a free web-hosting service to run your online business, e-commerce site, or any other website that is primarily directed at either facilitating commercial transactions or providing commercial software as a service (SaaS).
åæãè¦ãã¨ãããã®ä»ã® Web ãµã¤ããã«ããã£ã¦ããã®ã¯ã主ã«ååå¼ã®åæ»åã¾ãã¯ãµã¼ãã¹ã¨ãã¦ã®åç¨ã½ããã¦ã§ã¢ (SaaS) ã®æä¾ã®ã©ã¡ãããç®çã¨ãããã ã¨ãããã¨ãåããã¾ãããªã®ã§ãã主ã«ååå¼ã®åæ»åãç®çã¨ãããã®ä»ã®Webãµã¤ããã¨ããã®ãä¸çªææ§ã§è©²å½ããããªãµã¤ããå¤ãã¨æãã¾ãããååå¼ãã¨ããè¨èãã©ã解éãããã§ããªãå¤ããããã§ããæ¥æ¬èªã®ãååå¼ãã ã¨ãåæ¥ä¸ã®å£²è²·ã®è¡çºãã¨ããã売買ã§ã¯ãªãåç¨ãµã¤ãã§ããã°è©²å½ããªãããã«èªã¿åãã¾ããåæ¥ã®åå¼å ¨è¬ãæãè¨èã¯ãåè¡çºãã®ããã§ããä¸æ¹ããtransactionsãã¨ããåèªã§èããã¨ãa payment, or the process of making oneãã®ã»ãã«ããa business dealãã¨ããå®ç¾©ãããã¾ãããããåæ¥ã®è¡çºå ¨è¬ãæå³ããã¨ä»®å®ããã¨ãåç¨ãµã¤ãå ¨è¬ã該å½ãããã§ããããããããã§ããã°ããã¨ä¸¦åãã¦ããµã¼ãã¹ã¨ãã¦ã®åç¨ã½ããã¦ã§ã¢ (SaaS) ã®æä¾ããæ¸ãå¿ è¦æ§ããªãããã«æãã¾ããã¾ããç¾å¨GitHub Pagesã§åå¨ãã¦ãããµã¤ãã®å®æ ã¨ããªãä¹é¢ããããã¨ã«ãªãã¨æãã¾ãããããã«ãã¦ãããã®é¨åãå¿é ãªå ´åã«ã¯ãµãã¼ãã«åãåãããã»ããããããã§ãã
Company information and contacts via GitHub pages · community · Discussion #59893 · GitHub
Jekyllã®æ§é ã«ã¤ãã¦
ããã¯ããã¥ã¡ã³ããè¦ã¦å¿ è¦ãªç®æãå¤æ´ã追è¨ãã¦ãããããªãã¨æãã¾ããã以ä¸ã®2ã¤ã®ãã¡ã¤ã«ã¯ã¨ã«ããéè¦ã ã¨æãã¾ãã
- _config.yml
- _data/theme.yml
ããããã®ãã³ãã¬ã¼ãã«æãå ¥ãããã¨ããæã¯ã_includesãã©ã«ãä¸ã®ãã¡ã¤ã«ãç·¨éãã¾ãããã³ãã¬ã¼ãã¨ã³ã¸ã³ã®æ§æé¨åãå¤ããæã¯Webãµã¼ãã¼ãåå®è¡ããã®ãå¿ããªãããã«ãã¾ããããåæ ããã¾ããã