How to edit the YAML Front Matter of multiple markdown files

Hi there,

I’m migrating to a new theme, and needed to modify some Front matter variables in my posts.

I’m lazy and I don’t like Regex, so I searched for a tool to help me.

I found yq, a standalone CLI processor written in Go

The official documentation is pretty unclear, so I wrote a post:

(I’m rebuilding the design of this site, things can be broken)


Many free text editors can do “Search and replace in the project.” The regular expression language allows us to make almost any substitution in strings. For example Visual Studio Code.