Open mtlx03 opened 2 years ago
Hi,
the issue is with the zip
field, which is empty in the record before the last one: this causes name_expr
to fail, since record['zip']
returns nil
and nil
cannot be concatenated to a string.
Try changing name_expr
with something like:
name_expr: "#{record['biz']}_#{record['zip']}"
or
name_expr: (record['biz'] || "") + "_" + (record['zip'] || "")
Let me know if it works!
Hi, your plugin is a lifesaver. I'm new to Jekyll and Ruby so please pardon my ignorance.
I'm getting this error, and failed output:
when the script encounters a blank record (deliberate) in the csv data file:
config.yml looks like:
I'd like the filename to be
biz
and (optionally, only if it exists)_zip
.Here's more of the debug output:
Many thanks for having a look!