Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

can not set BASE_PATH #45

Closed
jedipunkz opened this Issue · 1 comment

2 participants

@jedipunkz

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.

@jedipunkz jedipunkz closed this
@plusjade plusjade reopened this
@plusjade
Owner

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.

@plusjade plusjade closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.