I'm creating a GitHub project page with Jekyll.
I've read the previous questions on this subject, as well as the Jekyll documentation here.
I've tried setting baseurl in _config.yml
to both /my-project
and
http://myaccount.github.io/my-project
while linking my CSS and js files like so:
<script src="{{ site.baseurl }}/js/javascript.js"></script>
<link href="{{ site.baseurl }}/css/style.css" rel="stylesheet">
When I run jekyll --serve --baseurl ''
everything looks good on localhost.
But when I push to github, all of my CSS and js files are 404ing; the links are getting turned into http://css/style.css
and so on.
What am I missing here?
I'm also confused about the purpose of the BASE_PATH
variable in _config.yml
, as opposed to baseurl
.
I tried setting BASE_PATH
and linking my files that way, but that didn't work either.