-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Enhancement: Support comma separated arrays in front matter #102
Comments
BTW I've found the "frontMatter.taxonomy.noPropertyValueQuotes": ["modified", "date", "tags"], but I think that a dropdown to select compatibility will make it easier ;-) |
Thank @iranzo for reporting this. The Having an optimized settings experience is on backlog #80. The dropdown would be a nice addition to it. I did some tests, and in the projects, I use for testing it is working as expected, but it might be because of all use What is Pelican using? Would you be able to share a sample page with the front matter and content? |
Pelican is also using YAML, for example: https://github.com/iranzo/iranzo.github.io/blob/master/content/2021-09-11-rhel8-administration.en.md |
Hugo doesn't use a style, they use YAML format, like other site generators. It is I'll validate it against your blog content, thanks for the reference. |
Sorry, for 'style' I meant for arrays, pelican uses comma separated words, but seems that it expects a |
There are two issues:
|
Yes, and 'neither' example 1, or example 2 are taken by pelican (I guess it should), but only parses keywords as comma-separated words |
I got good news, I changed some internal logic and the new version will be able to work with comma-separated array values. In order to support this, you'll have to do the following in your
As the comma-separated arrays are not valid YAML, you will have to let Front Matter know how to parse it. That is why the new If you want to test it out, you can install the beta version of Front Matter: https://beta.frontmatter.codes - https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-front-matter-beta Be sure to uninstall the main version, as the two cannot run or be installed at the same time. |
Great, it seems to work fine with the tags, looking forward for the autoescape too! Thanks a lot! |
Is your feature request related to a problem? Please describe.
When using Pelican markdown files with frontmatter I get several issues:
Describe the solution you'd like
Allow configurable 'frontmatter' styling for 'hugo', 'pelican' or others
Describe alternatives you've considered
So far, disabling and uninstalling the extension as it was breaking the articles I've. I've tried setting date format in settings and not add quotes, but still it adds them.
The text was updated successfully, but these errors were encountered: