Liquid Exception: no implicit conversion of Array into String in /_layouts/post.html
djmtype opened this issue · 2 comments
Describe the bug
Running jekyll build
or jekyll serve
, I get an error upon generation:
Liquid Exception: no implicit conversion of Array into String in /_layouts/post.html
jekyll 3.8.3 | Error: no implicit conversion of Array into String
Steps to reproduce the behavior
jekyll build
Configuration file: /Users/me/Sites/minima/_config.yml
Source: /Users/me/Sites/minima
Destination: /Users/me/Sites/minima/_site
Incremental build: disabled. Enable with --incremental
Generating...
Liquid Exception: no implicit conversion of Array into String in /_layouts/post.html
jekyll 3.8.3 | Error: no implicit conversion of Array into String
Expected behavior
My project should build
Additional context
Troubleshooting the issue until I found the culprit. I saw that the meta inside the yaml was exported incorrectly.
Instead of this:
title: Lowcountry Singers
It got exported from your Wordpress plugin as:
title:
- Lowcountry Singers
Looking at the issue further… I noticed I had a custom field I was using called "title". That's the reason.
Thirteen years ago, it was immature of me to decide to call a custom field, "title" considering the_title
is a Wordpress-specific tag.
For idiots like me, could you filter this more specifically so your plugin looks for post title field rather than a custom field called, "title"?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.