In your config.md, what did you set the prepath to? (or did you set it).
Here are some cases of where you expect your landing page to be and what the prepath should be:
-
https://www.foo.bar/→prepath = ""(or unset) -
https://www.foo.bar/baz/→prepath = "baz" -
https://www.foo.bar/baz/biz/→prepath = "baz/biz" -
https://username.github.io/→prepath = ""(or unset) -
https://username.github.io/Project/→prepath = "Project"
from what you describe (local ok, remote not ok) I’m fairly sure that’s your issue. I suspect you should set it to
# https://pages.<my job's GitHub domain>/<my ID>/pages/
prepath = "<my ID>/pages"
Edit: you may actually have set the prepath properly but didn’t apply it (given you’re pushing things manually). To push things manually, either:
- call
optimize(...)(e.g.optimize(minify=false, prerender=false)to keep things simple) - push the content of
__site/
or call publish(...) (which is a wrapper for 1+2).
If you push the content of __site directly after a local serve(...), the prepath will be un-set, even if you specified it.
optimize will “apply” the prepath that you specified. (You can see this in __site afterwards where paths will be like href="/$prepath/css/main.css" .
See also: Deploying your website