message no. 143537
Posted by DoctorMonocular in #jekyll at 2016-07-15T18:27:26Z
I wrote a hook that generates an object, and I want to add that object to the site config so in the hook I have a line like `site.config['my_obj'] = my_obj` -- in a template I then call site.my_obj. At first it didn't work because my_obj didn't define to_liquid, but then I wrote a to_liquid that output a hash. Now when I call site.my_obj it prints the right structure based on the to_liquid thing, but I ca