poole / lanyon

A content-first, sliding sidebar theme for Jekyll.
http://lanyon.getpoole.com
Other
3.24k stars 2.95k forks source link

Static assets can't be found when using theme as remote theme on GH Pages #244

Open gnarea opened 4 years ago

gnarea commented 4 years ago

I'm using this theme as a remote_theme on GH Pages and nearly everything works as expected. The only thing that doesn't work is the static assets: They can't be served. Here's the logs:

[2020-05-13 23:53:04] ERROR `/public/css/poole.css' not found.
[2020-05-13 23:53:04] ERROR `/public/css/syntax.css' not found.
[2020-05-13 23:53:04] ERROR `/public/css/lanyon.css' not found.
[2020-05-13 23:53:04] ERROR `/public/js/script.js' not found.

I'm working around this issue by copying the public/ directory, but it'd be ideal not to have to do this.

jzohrab commented 11 months ago

This could be a configuration issue. I have the following in my _config.yml using remote_theme and things seem to work as expected:

url:                 https://jzohrab.github.io
baseurl:             /

If you're using this for a project, then baseurl may be necessary (eg baseurl: /yourproject)