Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

CSS not loading for pages #112

Closed
astanush opened this issue Apr 10, 2015 · 4 comments
Closed

CSS not loading for pages #112

astanush opened this issue Apr 10, 2015 · 4 comments

Comments

@astanush
Copy link

I made a change to my src/toolkit/styles/toolkit.scss, but noticed the styles weren't being applied to /pages/home.html.

I added a leading / to the CSS path assets/toolkit/styles/toolkit.css in Chrome inspector and that seemed to fix the issue.

<link rel="stylesheet" href="assets/toolkit/styles/toolkit.css">

@LukeAskew
Copy link
Member

That's a bug from the recent overhaul. All pages used to save out to a single directory, but now they can be in sub-directories. Adding the {{baseurl}} var helps resolve paths.

Thanks for logging this.

@dietergeerts
Copy link
Contributor

This doesn't work if the toolkit is in a subfolder of your server... (adding ./ before {{baseurl}} does.)

@richhauck
Copy link

I'd hate to have to put ./ before every instance of {{baseurl}}...
Where's a good place to define baseurl for all template files to inherit it?

@LukeAskew
Copy link
Member

baseurl is an internal var right now, and is not configurable. You could store your own value in a data file under src/data and use it the same way (as a path prefix).

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

No branches or pull requests

4 participants