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

Can't find asset error is bad. #94

Open
scottredig opened this issue Nov 15, 2024 · 0 comments
Open

Can't find asset error is bad. #94

scottredig opened this issue Nov 15, 2024 · 0 comments

Comments

@scottredig
Copy link
Contributor

The error for a missing siteAsset incorrectly states that it must be under the page.

[missing_asset] unable to access '/gen/comptime_examples/array_sum.example.html': error.FileNotFound
(blog/bonkers_comptime.smd) content/blog/bonkers_comptime.smd:25:1:
    []($code.siteAsset("/gen/comptime_examples/array_sum.example.html").language("=html"))
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

NOTE: assets for this page must be placed under a subdirectory that shares the same name with the corresponding markdown file!

Also, before I found siteAsset in the documentation, I was using asset (as your example used), and the lack of the error telling me that there was an option to reference an asset not based on the post's directory nearly made me rage quit Zine. I thought there was an actual hard requirement that any assets referenced from the markdown file needed to be in that specific folder, which is unworkable for my use case.

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

No branches or pull requests

1 participant