Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not set BASE_PATH #45

Closed
jedipunkz opened this issue Feb 23, 2012 · 1 comment
Closed

can not set BASE_PATH #45

jedipunkz opened this issue Feb 23, 2012 · 1 comment

Comments

@jedipunkz
Copy link

I set BASE_PATH in _config.yml.

BASE_PATH : "http://example.jp/jekyll/test/_site"
or
BASE_PATH : /jekyll/test/_site

But, path in generated contents are "/${contents} .

<link href="/assets/themes/twitter/css/1.4.0/bootstrap.css" rel="stylesheet">
<link href="/assets/themes/twitter/css/style.css?body=1" rel="stylesheet" type="text/css" media="all">
<li><a href="/tags.html">Tags</a></li>
<li><a href="/pages.html">Pages</a></li>
<li><a href="/archive.html">Archive</a></li>

Is this problem ?

ASSET_PATH is usefull.

@plusjade plusjade reopened this Mar 1, 2012
@plusjade
Copy link
Owner

plusjade commented Mar 1, 2012

Hi @chobiwan , sorry for taking a while to reply. Did you get this issue resolved?
Off the top of my head I can say that BASE_PATH is always set to the root path '/' when working in localhost. This is so your website works as normal when developing. I.e. routes needed to be routed to 'localhost:4000/'

When you deploy to GitHub pages github will reset the site.safe config to true which JB uses as a way to denote "this is production". So BASE_PATH is set to whatever you set it in the config when in production mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants