Search code examples
htmlcssgithub-pages

Github pages subpage


I'm currently having issues publishing my subpage on github pages. The html file itself loads fine but I'm not sure exactly how to load the css and js files from the top (root?) directory. It's the portfolio html under the portfolio folder and I want it to use the css and js from the top folder The page The repo


Solution

  • Changed my src to the full link, i.e https://username.github.io/repo/css/styles.css Instead of relative path