+[2016-02-23T12:39:25Z]jekyllrbTitle: Jekyll liquid template with variable parameter - Stack Overflow (at stackoverflow.com) +[2016-02-23T19:17:34Z]parkrAloha! +[2016-02-23T22:35:29Z]travis-cijekyll/jekyll#6993 (master) The build was broken. https://travis-ci.org/jekyll/jekyll/builds/111336690 +[2016-02-23T22:36:52Z]travis-cijekyll/jekyll#6993 (master) The build was broken. https://travis-ci.org/jekyll/jekyll/builds/111336690 +[2016-02-23T22:55:42Z]travis-cijekyll/jekyll#6993 (master) The build was broken. https://travis-ci.org/jekyll/jekyll/builds/111336690
message no. 124657
Posted by parkr in #jekyll at 2016-02-23T19:17:34Z
Aloha!
+[2016-02-24T02:43:21Z]jeayeHow can I check if a liquid tag exists? +[2016-02-24T02:43:54Z]jeayeI share a header among a couple jekyll sites and one of them needs {% feed_meta %} in <head> but the rest should ignore it. +[2016-02-24T02:44:33Z]jeayeI figure I could wrap it in a conditional, based on site.has_feed or something, but I'm wondering if there's a built-in way of checking for this which I've missed. +[2016-02-24T02:54:00Z]jaybe{% if myvar %} ... {% else }% ... {% endif %} ? +[2016-02-24T02:54:16Z]jaybe[[liquid]]