-
Notifications
You must be signed in to change notification settings - Fork 92
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
Can't render page on fresh installation "The filename, directory name, or volume label syntax is incorrect." #166
Comments
Upon further inspection it seems that line 29 on partials/head/meta.html is causing trouble.
It generates filepath like this
But I have no idea how to write Hugo themes so maybe I'm completely on the wrong track 😅 (Just to be sure I also created a new post and set draft to false.) |
Just for reference, I installed Hugo into WSL (Ubuntu 22.04) and started it from the same folder:
As you can see, no issues at all. |
You can also try and og_image to the default params section worked for me change to mathcing image for you |
I experienced the same on my Windows PC, and this theme is simply too good to skip, so I dived into the issue today and found the fix. I have opened a PR here: #181. Simplest workaround until the PR is merged: Remove the comment and provide any (non-empty) value for
Full explanation: This is definitely the same error as described in #148, and the problem is that the meta.html partial performs a Since the example config.toml comments out the Since this path is illegal on Windows due to the percent sign, but not on Unix-based systems, only Windows users experience this error on build. |
* Guard meta.html fileExists call behind $image_path nil check * Correct if and with indentions for better readability
I wanted to give this theme a spin and ran straight into an error. To make sure it's not my hugo setup I started from scratch in a different folder, but ran into the same issue.
C:\Users\Joseph\Gitlab
hugo new site test-poison
git clone https://github.com/lukeorth/poison.git themes/poison --depth=1
hugo.toml
hugo serve
I have a feeling that this could be a issue with windows path using
\
instead of/
on unix systems. Maybe it's also related to #148.The text was updated successfully, but these errors were encountered: