Using a custom base URL for project pages

て烟熏妆下的殇ゞ 提交于 2019-12-06 11:35:24

That should be what baseurl is for.

  • Set baseurl in your _config.yml to match the production URL without the host (e.g. /example, not http://jekyll.github.io/example).
  • Run jekyll serve and go to http://localhost:4000/your_baseurl/, replacing your_baseurl with whatever you set baseurl to in your _config.yml, and not forgetting the trailing slash.
  • Make sure everything works.
    Feel free to prepend your urls with site.baseurl.
  • Push up to your host and see that everything works there, too!
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!