Fix "relatedLink" NULL in Schema.org/WebPage for backlinks
This commit is contained in:
parent
b90809e172
commit
aef0493154
1 changed files with 8 additions and 4 deletions
|
@ -124,6 +124,8 @@ class action_plugin_semantic extends DokuWiki_Action_Plugin {
|
|||
}
|
||||
}
|
||||
|
||||
if (isset($json_ld_webpage['relatedLink'])) {
|
||||
|
||||
$event->data["script"][] = array (
|
||||
"type" => "application/ld+json",
|
||||
"_data" => json_encode($json_ld_webpage),
|
||||
|
@ -131,6 +133,8 @@ class action_plugin_semantic extends DokuWiki_Action_Plugin {
|
|||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$event->data["script"][] = array (
|
||||
"type" => "application/ld+json",
|
||||
"_data" => json_encode($json_ld),
|
||||
|
|
Loading…
Reference in a new issue