Skip to content

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

Open
glebius wants to merge 1 commit into
poole:masterfrom
glebius:master
Open

Rename /public to /assets, as the latter is the special directory#212
glebius wants to merge 1 commit into
poole:masterfrom
glebius:master

Conversation

@glebius

@glebius glebius commented Nov 21, 2017

Copy link
Copy Markdown

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

mdo commented Nov 25, 2017

Copy link
Copy Markdown
Member

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

@mdo mdo closed this Nov 25, 2017
@glebius

glebius commented Nov 27, 2017

Copy link
Copy Markdown
Author

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

@mdo

mdo commented Nov 27, 2017

Copy link
Copy Markdown
Member

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

@ghost ghost left a comment

Copy link
Copy Markdown

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

2 participants