Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not remove quotation marks from frontmatter #5439

Closed
lsolesen opened this issue May 26, 2021 · 4 comments
Closed

Do not remove quotation marks from frontmatter #5439

lsolesen opened this issue May 26, 2021 · 4 comments

Comments

@lsolesen
Copy link

Describe the bug

I have a value like this in my frontmatter:

coords:
    - "1,4,5,3,45,34"

However, after editing the post the quotation marks are removed so, and now it is no longer considered a string in liquid. That means I can no longer just {{ c }}, as this will output 14534534 and not like 1,4,5,3,45,34 which it would before removing the quotation marks.

To Reproduce

The quotation marks seems to always be removed like here - https://github.com/motionsplan/motionsplan-dk-jekyll/pull/74/files#diff-e2e171531dbff3ff531fa7df1eb53dc5720cd96416379996ffd3e7306bbd73f2L36

Expected behavior

Make it possible to have a comma separated list as a string. Maybe a setting on the individual widget.

Screenshots

Applicable Versions:

  • Netlify CMS version: 2.10.131
  • Git provider: [e.g. GitHub, BitBucket]
  • OS: [e.g. Windows 7]
  • Browser version [e.g. chrome 22, safari 11]
  • Node.JS version:

CMS configuration

https://github.com/motionsplan/motionsplan-dk-jekyll/blob/master/admin/config.yml

Additional context

@erezrokah
Copy link
Contributor

erezrokah commented May 27, 2021

Hi @lsolesen, does removing the quotation marks has any negative effect?

If you paste the content here you'll see those are still parsed as strings.

@lsolesen
Copy link
Author

Yes. It has started outputting without the commas.

@erezrokah
Copy link
Contributor

Yes. It has started outputting without the commas.

What's the impact of that? Does it break anything in your build?

@martinjagodic
Copy link
Member

Closing as stale

@martinjagodic martinjagodic closed this as not planned Won't fix, can't repro, duplicate, stale Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants