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

External CSS file in header and footer #27

Closed
simon-dube opened this issue Apr 21, 2015 · 4 comments
Closed

External CSS file in header and footer #27

simon-dube opened this issue Apr 21, 2015 · 4 comments

Comments

@simon-dube
Copy link

I am trying to use en external CSS file in my header and my footer, but it doesn't seems to works. Even bootstrap style that works in the body doesn't work in footer and header. However, the inline CSS works, but I would prefer to have cleaner code and to split the CSS from the HTML.

Thanks.

@itajaja
Copy link

itajaja commented Apr 26, 2015

it doesn't appear to be supported at the moment. What I did, was to use cheerio to grab all the link element, resolve them, and wrap the resolved style inside a <style></style> tag. Be also aware that for now the only style that is grabbed for the header and footer is the first one declared. I am going to open a PR to solve that

@itajaja
Copy link

itajaja commented Apr 26, 2015

You can use this PR to work around the issue :)

@marcbachmann
Copy link
Owner

This should work now with the newest version

@linus-amg
Copy link

doesn't work for me with the newest version, im referencing bootstrap remotely in the head with a link element.

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">

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

No branches or pull requests

4 participants