VarunDevBlog

Checking if a variable is set in Jekyll

{{site.lcb}}% if page.some_variable And page.some_variable != "" And page.some_variable != nil %}
   some_variable is set
{{site.lcb}}% else %}
   some_variable is not set
{{site.lcb}}% endif %}

Source: www.mattcrampton.com
With help of: http://ozzieliu.com/2016/04/26/writing-liquid-template-in-markdown-with-jekyll/ With help of: http://kylebebak.github.io/post/mixing-markdown-html