Hiding inputs in the data editor

Hidden fields are not present in the interface. This is useful for reducing the number of options or hiding more destructive actions.

Hidden keys

Keys that begin with an underscore will be automatically hidden in the data editor.

Front Matter
_image_src: /src/

Hiding with options

Specify which inputs are hidden using the hidden option.

    hidden: true

Adding the above code to your site’s configuration will hide the layout field in all your files.

Adding the above code to the front matter of a file will hide the layout field on only that file.

Hidden fields can be edited with modal-style Editor Links.

Was this article helpful? or Suggest an improvement >

Related articles