#Frontmatter

23 messages · Page 1 of 1 (latest)

viral copper
#

{fontmatter.status.statusone}

patent estuary
#

I assigned the frontmatter to Astro.props That's why there is no fronmatter before it

viral copper
#

You didn’t define Status. Where do you try to assign Status?

patent estuary
viral copper
#

You need to assign the object to status.

patent estuary
#

It was first used be like

Status: {
       StatusOne:""
       StatusTwo: ""}

I could use it like Status.StatusOne. But I do not know how to get frontmatter within curly brackets using yml of netlify cms.

viral copper
#

You use the variable Status. Where do you set it’s value?

patent estuary
# viral copper You use the variable Status. Where do you set it’s value?

I gave no value to Status before and didn't cause any problems. And I think I dont have to give Status: { Status:one
Status:two}
I've seen people use this in markdown frontmatter

Image: {
       src:../
       alt:"string"}

Here i do not think i have to assign value to Image. But the same problem arise how to get it in brackets from yml

viral copper
viral copper
viral copper
patent estuary
viral copper
#

It’s Status.StatusOne

#

I’m your screenshot

patent estuary
#

so i have to give it a value

#

than i will work?

viral copper
#

You’re trying to read “StatusOne” from an undefined object names “Status”

#

So I want to know how you assign the “Status” object in your Astro file

patent estuary