'How Change Url Path for Jekyll Blog on a GitHub Subdirectory?

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



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1