I have front matter with this format and will pass to json+ld:
recipe_instructions: [
{
‘@type’: ‘HowToStep’,
‘text’: ‘Preheat oven to 350 degrees F (175 degrees C).\n’
},
{
‘@type’: ‘HowToStep’,
‘text’: ‘Sprinkle chicken breasts with salt and pepper to taste, and place in a lightly greased 9x13 inch baking dish. In a small bowl, combine the honey, mustard, basil, paprika, and parsley. Mix well. Pour 1/2 of this mixture over the chicken, and brush to cover.\n’
},
{
‘@type’: ‘HowToStep’, ‘text’: ‘Bake in the preheated oven for 30 minutes. Turn chicken pieces over and brush with the remaining 1/2 of the honey mustard mixture. Bake for an additional 10 to 15 minutes, or until chicken is no longer pink and juices run clear. Let cool 10 minutes before serving.\n’
}]
after run with
hugo server
my json ld become :
“recipeInstructions”:
“[map[@type:HowToStep
text:Preheat oven to 350 degrees F (175 degrees C).\n]
map[@type:HowToStep
text:Sprinkle chicken breasts with salt and pepper to taste, and place in a lightly greased 9x13 inch baking dish. In a small bowl, combine the honey, mustard, basil, paprika, and parsley. Mix well. Pour 1/2 of this mixture over the chicken, and brush to cover.\n]
map[@type:HowToStep
text:Bake in the preheated oven for 30 minutes. Turn chicken pieces over and brush with the remaining 1/2 of the honey mustard mixture. Bake for an additional 10 to 15 minutes, or until chicken is no longer pink and juices run clear. Let cool 10 minutes before serving.\n]]”
How i can i cast the front matter so it can’t change when i use {{ .Params.recipe_instructions . }}