github pages doesn't include all subdirectories -


description

trying out github pages project files organized this:

/index.html /landingpage/css/styles.css /vendor/bootstrap/css/bootstrap.css 

in index.html including project's specific css file works:

 <link href="landingpage/css/styles.css" rel="stylesheet"> 

but including vendor's css file doesn't:

 <link rel="stylesheet" type="text/css" href="vendor/bootstrap/css/bootstrap.css"> 

when loading page, 200 http response to:

get https://loicjaouen.github.io/landingpage/landingpage/css/styles.css 

and 404 to:

get https://loicjaouen.github.io/landingpage/vendor/bootstrap/css/bootstrap.css 

question

what's wrong including vendor subdir prevents github pages serving files inside vendor?

reference

https://github.com/loicjaouen/landingpage/tree/original-brokenlinks

first attempt

move subdir vendor inside existing landingpage.

see code @ https://github.com/loicjaouen/landingpage/tree/brokenlinks

that worked... not quite satisfactory guess 1 subdir included.

second attempt

leave subdir vendor @ root level , rename other.

see code at: https://github.com/loicjaouen/landingpage/tree/non-vendor-subdir

that worked too: apparently including subdir named vendor not allowed


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -