noelforte / eleventy-plugin-vento

Eleventy plugin that adds support for Vento templates
https://www.npmjs.com/package/eleventy-plugin-vento
MIT License
5 stars 0 forks source link

Using eleventyComputed writes result into template content #10

Closed ryanccn closed 2 weeks ago

ryanccn commented 3 weeks ago

When I try to do this in my templates:

eleventyComputed:
  title: Tagged “{{ tag }}”

It writes Tagged “<the actual tag>” to the title frontmatter entry but also replaces the template content with the result instead of the actual rendered template.

ryanccn commented 3 weeks ago

I think the same issue is also causing the permalink to replace the rendered content when vto is used as the Markdown template engine.

noelforte commented 2 weeks ago

Could be a caching issue, ran into similar problems with permalinks being injected into the template content. Will take a look to see what might be causing it. Thanks!

noelforte commented 2 weeks ago

@ryanccn I've opened some issues upstream to see if the cache behavior can be handled at a lower level. If not, I'll implement a patch to keep the cache cleared so things work as expected.

github-actions[bot] commented 2 weeks ago

:tada: This issue has been resolved in version 2.6.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

ryanccn commented 1 week ago

Thanks!