Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename /public to /assets, as the latter is the special directory #212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

glebius
Copy link

@glebius glebius commented Nov 21, 2017

Hi!

I tried to use hyde together with https://github.com/benbalter/jekyll-remote-theme. This gem allows to host a website with GitHub Pages with any GitHub-hosted theme (not only supported by Pages). It puts remote theme to a temporary directory, compiles _site and deletes temporary. This yielded in files missing from the generated website:

[2017-11-21 00:43:00] ERROR /public/css/poole.css' not found. [2017-11-21 00:43:00] ERROR /public/css/syntax.css' not found.
[2017-11-21 00:43:00] ERROR `/public/css/hyde.css' not found.

This happens because Jekyll doesn't treat /public as a special directory. See https://jekyllrb.com/docs/themes/. Putting stylesheets and icons into /assets fixes the problem.

for a Gem based theme. See https://jekyllrb.com/docs/themes/.

This fixes operation of hyde with jekyll-remote-theme.
@mdo
Copy link
Member

mdo commented Nov 25, 2017

As far as I know, there's nothing special about public.

@mdo mdo closed this Nov 25, 2017
@glebius
Copy link
Author

glebius commented Nov 27, 2017

Exactly, there is nothing special about "public", but there is about "assets". And we need it be special to be copied over.

@mdo
Copy link
Member

mdo commented Nov 27, 2017

Oh well shit, I misread that one. I dunno when I'll get to this and the other themes though.

@mdo mdo reopened this Nov 27, 2017
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants