-
Notifications
You must be signed in to change notification settings - Fork 27
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
"[jekyll-webmention_io] Liquid error: internal" error when using includes in Webmention templates #83
Comments
I made a branch with these includes: |
Ok weird. I’ll take a look. Sounds like I need to figure out how to handle includes in includes ;-) |
@nhoizey how did you get the plugin to work with your templates? Whenever I build the template tags in the |
I am hitting my head against the wall here. It looks like the Liquid parser needs to know about the other Liquid Tags in the project, which I can get from the |
@nhoizey Is there any additional info available when you try to build with the above includes via the
|
@ashmaroli Tracing this gives no additional error information in my experience. Here’s the code I’m using to do the Liquid parsing & rendering: template = Liquid::Template.parse(@template, :error_mode => :strict)
html = template.render(@data, { :strict_variables => false, :strict_filters => true }) @template contains the default or custom template markup (where the I can’t seem to find any docs on how to do this properly. |
Worth noting, I tried this with additional liquid tags and get the same error. I tried both |
Yeah, |
Can you provide me with a minimal, reproducible repo that I can use to encounter this error at my end..? |
I have a local test site I use. It’s a skeleton demo but should work. I don’t have it in Github because there’s no point, but here’s a ZIP of everything but the vendor directory. |
I've traced the bug behind this.. will send a PR shortly.. |
@twhite96 my build works with my current master branch, but not the one I linked to in the comment before yours. |
Resolved in 2.9.7. |
I have created a few templates for specific Webmention types:
https://github.com/nhoizey/nicolas-hoizey.com/tree/master/_includes/webmentions
The code for the author avatar is copy/pasted multiple times, so I wanted to share it in an include.
But when I try to serve or build the site, I get this error:
I have to say that I'm currently using version 2.9.1 of this plugin because of incompatible shared dependencies. I'll try to remove the other plugin to test with latest version.
The text was updated successfully, but these errors were encountered: