+ [9 years ago] jekyllrb The operation succeeded.
+ [9 years ago] zero-gravitas ./learn gui is http://www.siteleaf.com
+ [9 years ago] jekyllrb (gui) (#1) guthub.com, or (#2) prose.io, or (#3) http://cloudcannon.com/jekyll-gui/, or (#4) https://github.com/gabriel-john/utterson, or (#5) http://jekyllrb.com/news/2016/06/03/update-on-jekyll-s-google-summer-of-code-projects/, or (#6) http://www.siteleaf.com
+ [9 years ago] CompanionCube is there any particular reason that post.excerpt would be empty?

message no. 146967

Posted by zero-gravitas in #jekyll at 2016-08-16T16:02:04Z

./fs gui
+ [9 years ago] darkbit How can i check if a data file is present or have no entries? I tried site.data.something == nil or site.data.something.size == 0 but it doesn't seem to work. It seems that jekyll does not create the variable if the data file does not exist and so how can I check the variable's existence?
+ [9 years ago] darkbit anyway, i got it
+ [9 years ago] jaybe darkbit: share how :)
+ [9 years ago] darkbit i used {% if site.data.something.size %} do your stuff {% else %} do this when nothing is found {% endif %}
+ [9 years ago] darkbit if 'something' is not declared then something.size would return nil