jekyll-bootstrap icon indicating copy to clipboard operation
jekyll-bootstrap copied to clipboard

ERROR `/assets/themes/bootstrap/css/bootstrap.min.css' not found

Open aallam opened this issue 9 years ago • 8 comments
trafficstars

Hello,

I'am a new user, i followed this instructions, but after running jekyll serve i get the following error (after i access to http://localhost:4000):

[2016-03-21 17:32:43] ERROR '/assets/themes/bootstrap/css/bootstrap.min.css' not found. [2016-03-21 17:32:43] ERROR '/assets/themes/bootstrap/css/bootstrap-theme.min.css' not found. [2016-03-21 17:32:43] ERROR '/assets/themes/bootstrap/css/bs-sticky-footer.css' not found. [2016-03-21 17:32:43] ERROR '/assets/themes/css/style.css' not found. [2016-03-21 17:32:43] ERROR '/assets/themes/bootstrap/js/bootstrap.min.js' not found.

Meanwhile there is a folder in assests/themes named bootstrap-3.. !

EDIT: after installing an other theme (twitter theme), the bootstrap errors are gone, but still have the following:

[2016-03-21 17:46:57] ERROR '/assets/themes/css/1.4.0/bootstrap.css' not found. [2016-03-21 17:46:57] ERROR '/assets/themes/css/style.css' not found.

EDIT2: Resolved the left errors by copying the folder '_theme_packages/twitter/assets/themes/twitter/css/' into 'assets/themes/'. Still, i don't think that i should have this the errors after a clean git clone !

aallam avatar Mar 21 '16 16:03 aallam

Hi~ I meet a similar problem. I followed the Jekyll QuickStart.

It ran locally well. But when I opened http://yabzhang.github.io/ in my browser, it seemed no css file be loaded.

I checked requests and found all the GET requests strange.


http... /assets/themes/bootstrap-3/bootstrap/css/bootstrap.min.css Failed to load resource: the server responded with a status of 404 (Not Found) ... http... /assets/themes/bootstrap-3/bootstrap/js/bootstrap.min.js Failed to load resource: the server responded with a status of 404 (Not Found) ...


Actually there is no bootstrap-3 folder in assests/themes on my local machine.

Instead there are twitter bootstrap css three folders.

When I ran jekyll serve locally, it works well. But the static file link is different:

I have a clean git branch.

YabZhang avatar Mar 27 '16 12:03 YabZhang

@YabZhang I think you can do one of this solutions:

  • Edit your file like in the patch above
  • Or simply try create a folder named |bootstrap-3| in your folder |assets|, and mv your folder |bootstrap| into it this should work too. (you can check mine here)

aallam avatar Mar 27 '16 13:03 aallam

@Aallam

Thank u!
I create a folder bootstrap-3 and put bootstrap in there. Now it works well.

YabZhang avatar Mar 28 '16 04:03 YabZhang

there are so many stupid problem in Jekyll,I think it is time to give up .

Pines-Cheng avatar Apr 23 '16 16:04 Pines-Cheng

correct but eh first two can be found and are enhanced elsewhere. -link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"- -script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"--/script- -script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"--/script-

and all three are required IMHO. otherwise it wont load.

JazzMaster avatar Jun 13 '16 09:06 JazzMaster

@Aallam creating the bootstrap-3 folder worked for me.

I dug a little deeper and found that this issue is related to these changes: d4013448a16ca3d3381a087863d287d7b9f5b96f and cf5484f3f07fab4b5a62bf950db4b138c0854ca0.

superkarn avatar Jun 17 '16 02:06 superkarn

I am on master branch (commit hash https://github.com/plusjade/jekyll-bootstrap/commit/819386977cb483691f4ad77a3370e726f70ae98d ). I have the following errors:

[2016-09-24 23:00:24] ERROR `/assets/themes/bootstrap-3/bootstrap/css/bootstrap.min.css' not found.
[2016-09-24 23:00:24] ERROR `/assets/themes/bootstrap-3/bootstrap/css/bootstrap-theme.min.css' not found.
[2016-09-24 23:00:24] ERROR `/assets/themes/bootstrap-3/bootstrap/css/bs-sticky-footer.css' not found.
[2016-09-24 23:00:24] ERROR `/assets/themes/bootstrap-3/css/style.css' not found.
[2016-09-24 23:00:24] ERROR `/assets/themes/bootstrap-3/bootstrap/js/bootstrap.min.js' not found.
[2016-09-24 23:00:24] ERROR `/assets/themes/bootstrap-3/bootstrap/js/bootstrap.min.js' not found.

My fix is change ASSET_PATH : false to ASSET_PATH : /assets/theme in _config.yml.

yaojingguo avatar Sep 24 '16 15:09 yaojingguo

I changed the folder to bootsrtap-3 but this appears to be a problem for me still. 0 - Jekyll in 3 minutes you wish! More like 3 days if not 3 weeks. image

erikmartinessanches avatar Aug 06 '20 21:08 erikmartinessanches