You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a jekyll layout where I want to include content of pages, depending on whether it exists.
Apparently, it is supposed to be done like described in #89
In my case it would look as follows:
{% assign title = page.title %}
{% if page.name %}
{% assign title = page.name %}
{% endif %}
<title> {{ title }} | {{ site.title }} </title>
But since I have strict_variables set to true, which is really useful for development, Liquid throws an exception on building (undefined variable name included).
In my opinion, strict_variables should not throw exceptions for cases where the undefined variable is checked for existance.
mdlincoln, paleite, Calinou, Hampei, asbjornu and 16 more