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

[0.11] get_url fails for sass files #1054

Closed
apiraino opened this issue Jun 6, 2020 · 2 comments
Closed

[0.11] get_url fails for sass files #1054

apiraino opened this issue Jun 6, 2020 · 2 comments
Labels
bug done in pr Already done in a PR

Comments

@apiraino
Copy link
Contributor

apiraino commented Jun 6, 2020

Environment

Zola version: 0.11

Expected Behavior

SASS files should be compiled, placed in the public dir and loaded

Current Behavior

SASS files are compiled, placed in the public dir but the when I load them with get_url I get an error (see below)

Without bisecting I suspect that this commit could be related.

Step to reproduce

I have a template (post.html) with this CSS directive
<link rel="stylesheet" href="{{ get_url(path='css/style.css', cachebust=true) | safe }}">

I have a file in ./sass/css/style.scss (this file is taken from a Jekyll theme (so it's an import of another sass).
The sass is compiled and I see the public/css/style.css minified.

But then zola serve return this error:

$ RUST_BACKTRACE=1 zola serve
Building site...
-> Creating 67 pages (0 orphan), 0 sections, and processing 0 images
Error: Failed to render page '/home/user/myblog/content/some-page.md'
Reason: Failed to render 'post.html'
Reason: Could not read file `css/style.css`. Expected location: /home/user/myblog/content/css/style.css

What do you think? Am I missing something?

Again, thaks for Zola :)

@Keats
Copy link
Collaborator

Keats commented Jun 6, 2020 via email

@Keats Keats added bug done in pr Already done in a PR labels Jun 9, 2020
@Keats Keats closed this as completed Sep 4, 2020
@apiraino
Copy link
Contributor Author

apiraino commented Sep 5, 2020

Bug seems to be fixed in v0.12 - thanks!

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

No branches or pull requests

2 participants