Schema.org Markup with JSON on Different Types of Pages

I’m sorry, but I don’t understand it. So what code do I place on the content page and where? and what do I place in the header.html file? And do I need to put something in the config.toml file?

UPDATE: Ok so I think it’s working now. Correct me if I’m wrong, but I placed the following lines in the content page between —:

schema: "<script type=\"application/ld+json\">{
\"@context\":\"http://schema.org\",
\"@type\":\"AboutPage\",
\"headline\":\"About DIYTechGuides\"
},}\</script>"

And then I placed the following lines in the header.html file:

{{ if isset .Params "schema" }}{{ .Params.schema | safeHTML }}{{ end }}

It looks like it’s working.

Is this the way you would do it?

1 Like