DEV Community

Waylon Walker
Waylon Walker

Posted on

Is the DEV yaml frontmatter broken or changed?

I often opt for using the yaml frontmatter of dev rather than the UI as it is easier to replicate from other posts in a similar series. Today I copied one, hit write a post and it did not pick up my frontmatter and told me I couldn't save without a title.

---
title: "What Did You Learn This Week --May 15?"
tags: todayilearned, discuss
cover_image: https://res.cloudinary.com/practicaldev/image/fetch/s--TpOOUw4B--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://dev-to-uploads.s3.amazonaws.com/i/67bb72156h4y13zl5cio.png
series: this-week-i-learned
---
Enter fullscreen mode Exit fullscreen mode

Is this a bug? Am I doing something wrong? Was there a change to how you use yaml frontmatter, it clearly still works on my old posts?

Update

This is what I see when I post how I used to.

Unable to make post with yaml frontmatter

Top comments (2)

Collapse
 
ben profile image
Ben Halpern

^ Looks like you have the non-frontmatter editor in the screenshot.

Did you change this in /settings/ux?

Collapse
 
waylonwalker profile image
Waylon Walker • Edited

Looks like that was it. I do not recall changing this. For some reason I feel like in the past with the rich editor it would automatically change for me if it saw the frontmatter at the top. Thanks for the fix, this definitely works for me.

Looks like I was set to Rich + Markdown