question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enhancement: Allow multiple frontmatter types

See original GitHub issue

Is your feature request related to a problem? Please describe. My Hugo website currently uses TOML frontmatter for new content; however, I also have a large amount of YAML. Hugo copes with this fine, so it would be great for Frontmatter to support that as well if possible!

Describe the solution you’d like To allow multiple frontmatter types, perhaps distinguished by the characters used as guards. E.g. --- seems standard for YAML, while +++ is standard for TOML. Could the frontmatterType option be changed to an array of accepted frontmatter types?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
SG60commented, May 17, 2022

Just tried it, all seems to be working!! Thanks!

1reaction
estruyfcommented, May 17, 2022

Changed the logic of Front Matter to automatically detect this per file, no need for setting changes.

The original setting is still used for the creation of new files.

PS: This is testable in the latest BETA version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Settings - Front Matter CMS
Some of the Front Matter settings can be split in multiple files to make management of these easier. For example, in case you...
Read more >
Issues · estruyf/vscode-front-matter - GitHub
Front Matter is a CMS running straight in Visual Studio Code. Can be used with static site generators like Hugo, Jekyll, Hexo, NextJs,...
Read more >
Front Matter | Jekyll • Simple, blog-aware, static sites
Similar to categories, one or multiple tags can be added to a post. Also like categories, tags can be specified as a YAML...
Read more >
Front Matter Templates | Forestry.io
Front Matter Templates work by allowing developers to define which Fields are available to editors when editing pages, content types or data ...
Read more >
Enhance Obsidian with a type system for notes and database ...
It would also be great to give yaml fields in the content of a note. Proposed solution The Dataview plugin recently gave support...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found