Hi,
I need to manage metadata information of my markdown file with this structure:
meta:
- name: title
content: Lorem ipsum
- name: description
content: Lorem ipsum
- name: keywords
content: Lorem, ipsum
- name: viewport
content: width=device-width, initial-scale=1
- name: robots
content: noindex
I don’t know how to set in the config.yml file. I have revised the object widget for it but I haven’t clear how to set the ‘content’ field.
I have tried:
- label: “Meta”
name: “meta”
widget: “object”
collapsed: true
fields:- {label: “title”, name: “title”, widget: “string”}
- {label: “description”, name: “description”, widget: “string”}
- {label: “robots”, name: “robots”, widget: “string”, default: “noindex”}
But in the markdown file saved as:
meta:
title: Lorem ipsum
description: Lorem ipsum
robots: noindex
So the render doesn’t working fine to metadata with this syntax.
My question : Is possible to create a field in Netlify CMS as my first example?
meta:
- name: title
content: Lorem ipsum
- name: description
content: Lorem ipsum
- name: keywords
content: Lorem, ipsum
- name: viewport
content: width=device-width, initial-scale=1
- name: robots
content: noindex
I would appreciate your help.