liquid

Getting an “Unknown tag”/Liquid error while using Jekyll

丶灬走出姿态 提交于 2020-07-07 07:32:14
问题 I did a bundle update for my Jekyll site, then tried to run bundle exec jekyll serve . I got the following console message: Liquid Exception: Liquid syntax error (line 8): Unknown tag 'when' in vendor/bundle/ruby/2.4.0/gems/liquid-4.0.0/lib/liquid/locales/en.yml I've tried the following: uninstall/reinstall Jekyll uninstall/reinstall Gems uninstall/reinstall Ruby install RVM do rm Gemfile.lock run bundle update Curiously, when I run rvm list , it says * ruby-2.4.1 [ x86_64 ] . Even though the

Custom Jekyll Plugin (Liquid Filter?) rendering script tags as text, not as JavaScript

百般思念 提交于 2020-06-29 02:50:41
问题 I'm experimenting with building a site using Jekyll for a friend. I'm trying to transform front matter from files like /_events/2020-02-25-an-event.md and /_events/2020-02-26-another-event.md into something that can be easily embedded into the body of various building blocks of content and result in those pages, as viewed by a visitor, including <script type="application/ld+json">...</script> tags conforming to schema.org event standards. A file like /_events/2020-02-25-an-event.md looks like