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

Safeguard meta.html fileExists for error-free build on Windows #181

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dbdness
Copy link

@dbdness dbdness commented May 1, 2024

closes #166.

Thanks for an amazing theme! This PR introduces a simple nil check with {{ with $image_path }} in meta.html before the call to fileExists $image_path_local.

This change fixes the build issues on Windows machines as described in #166 and #148, as the build will no longer reach a fileExists call with a "\assets\%!s(<nil>)" argument, which is not a supported file path on Windows due to the percent sign.

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

Successfully merging this pull request may close these issues.

Can't render page on fresh installation "The filename, directory name, or volume label syntax is incorrect."
1 participant