You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+++
"@type" = "WebPage"
[["@graph"]]
"@type" = "WebPage"
"@id" = "https://example.com/"
name = "Home"
abstract = "Jane Doe a software engineer with interest in static site generators."
author."@id" = "https://example.com/#schema/person/1234567890"
isPartOf."@id" = "https://example.com/#website"
+++
However, this does not work, because the array of tables ("@graph") is overwritten as a whole, when merging the blurry.toml and the front matter. I'd expect the arrays of tables to be merged. May be all arrays should be merged instead of overwritten?
P.S.: As you can see I also have to duplicate the '@type' attribute because it has dual meaning (template resolution and schema type), which causes other issues.
When I include the schema from the blurry.toml into the front matter, it works nicely. But that would be a lot of repetition for this "global" info.
It works, if I make the json+ld part of the templates. But that would be not so cool either.
The text was updated successfully, but these errors were encountered:
KajKandler
changed the title
An array of tables in the blurry.toml is overwritten instead of merges with additional elements in front matter
An array of tables in the blurry.toml is overwritten instead of merged with additional elements in front matter
Nov 15, 2023
Use Case
I'm trying to create composable schema, like Yoast (https://yoast.com/why-schema-needs-to-be-a-graph/ , https://developer.yoast.com/features/schema/functional-specification/)
I order to not repeat myself I tried to put the global definitions for WebSite and Author and Publisher into the blurry.toml. For example:
and reference it in the index.md like
However, this does not work, because the array of tables ("@graph") is overwritten as a whole, when merging the blurry.toml and the front matter. I'd expect the arrays of tables to be merged. May be all arrays should be merged instead of overwritten?
P.S.: As you can see I also have to duplicate the '@type' attribute because it has dual meaning (template resolution and schema type), which causes other issues.
When I include the schema from the blurry.toml into the front matter, it works nicely. But that would be a lot of repetition for this "global" info.
It works, if I make the json+ld part of the templates. But that would be not so cool either.
The text was updated successfully, but these errors were encountered: