You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The error for a missing siteAsset incorrectly states that it must be under the page.
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.The text was updated successfully, but these errors were encountered: