octopress / genesis-theme

A Jekyll theme build on Octopress Ink
MIT License
24 stars 16 forks source link

Liquid Exception: no implicit conversion of String into Hash in _layouts/post.html #26

Closed fred-o closed 9 years ago

fred-o commented 9 years ago

It seems the line

  {% include theme:post_meta.html | join_lines %}

in layouts/post.html is causing problems. When I run 'jekyll server' I get the error 'Liquid Exception: no implicit conversion of String into Hash in _layouts/post.html'. If I remove the line everything works fine.

These are my gems:

fred-o commented 9 years ago

I traced this down to the email sharing link; if there is no email addy configured for the octopress/social plugin I get this error. Workaround: configure an email address or disable email sharing.

imathis commented 9 years ago

Thanks! I'll get a fix out soon.

imathis commented 9 years ago

Ok, looking at this further it seems this is a configuration collision. You probably have email: you@somewhere.com defined in your Jekyll configuration. The Octopress Social plugin expects email to be a hash of options. If you update your configuration to match that it should work, but I can see how other plugins may expect email not to be a hash. I'll work on a solution that avoids collision.

imathis commented 9 years ago

I've just released a new version of octopress-social. Update that gem and you should be good to go. Thanks for helping me find this bug :)

fred-o commented 9 years ago

Thanks for your hard work, btw. I love octopress 3 :)

imathis commented 9 years ago

Awesome. I'm glad to hear it!