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
Some pages not found on Windows in zola serve #1169
Comments
Can you test with 0.12? |
The problem still exists. |
Ah wait, you're calling a shortcode in a template, that's not what shortcodes are for. They can only called inside a |
I have tried to use macros but not working and shows Step to reproduce
|
This is the server 404, nothing to do with macros. Is your repo on GH so I can take a look? |
This is the site with content stripped away https://github.com/anthonychwong/getzola-issue-1169 . |
http://127.0.0.1:1111/notes/dummy-note-1/ works for me, are you on Windows by any chance? |
Yes, that was on Windows, and I have just tried with docker image |
yeah, sounds like a Windows-only issue :( |
Here's a 3 file repro, the issue is that nested paths are not served by Repo: https://github.com/udoprog/zola-not-serving Zola 11:
Zola 12
|
…zola#1169) This introduces `relative-path`, a crate I've written for the specific purpose of providing platform-neutral operations over paths the same way they are used in URLs. This means that `///hello///` == `/hello`, which should do the same as the existing stripping minus the platform-specific path separators causing the [bug being referenced](getzola#1169).
…zola#1169) This introduces `relative-path`, a crate I've written for the specific purpose of providing platform-neutral operations over paths the same way they are used in URLs. This means that `///hello///` == `/hello`, which should do the same as the existing stripping minus the platform-specific path separators causing the [bug being referenced](getzola#1169).
Note: the root cause is that serving in-memory files from |
…) (#1175) This introduces `relative-path`, a crate I've written for the specific purpose of providing platform-neutral operations over paths the same way they are used in URLs. This means that `///hello///` == `/hello`, which should do the same as the existing stripping minus the platform-specific path separators causing the [bug being referenced](#1169).
Bug Report
Environment
Zola version: 0.11.0
Expected Behavior
Theme should be able to call shortcode and render properly.
Current Behavior
Given There are short codes defined in both base site and theme, referencing them in theme causes function not found error.
(If the stacktrace of a panic is needed, where to add the
RUST_BACKTRACE=1
?)Step to reproduce
<site root>\themes\<theme name>\templates\shortcodes\note_title.html
zola serve
failed with errorFunction `note_title` not found
.The text was updated successfully, but these errors were encountered: