Home > OS >  How Change Url Path for Jekyll Blog on a GitHub Subdirectory?
How Change Url Path for Jekyll Blog on a GitHub Subdirectory?

Time:05-18

Good day,

I wrote a site builder. Source here : https://github.com/koy-odasi/core

and

I installed my site (https://github.com/barak-framework/blog) in subdirectory using https://github.com/koy-odasi/core

Subdirectory has a branch gh-pages and deployed here : https://barak-framework.github.io/blog/

But i have a problem. pager works incorrectly So page.previous.url and page.next.url url paths have not blog subdirectory:

but page.previous.url and page.next.url url paths should be in like this:

My Jekyll configuration file here : https://github.com/barak-framework/blog/blob/gh-pages/_/_config.yml

Can you help me?

Best regards

CodePudding user response:

Trt adding this to your _config.yml: baseurl: "/blog" and possibly add {{ site.baseurl }} to your links in templates

  • Related