Added trailing slash in @context

This commit is contained in:
Giuseppe Di Terlizzi 2020-08-25 12:49:39 +02:00
parent 879939ea3e
commit 21aaf22b53

View file

@ -24,7 +24,7 @@ class helper_plugin_semantic extends DokuWiki_Plugin
global $conf; global $conf;
$json_ld = array( $json_ld = array(
'@context' => 'http://schema.org', '@context' => 'http://schema.org/',
'@type' => 'WebSite', '@type' => 'WebSite',
'url' => DOKU_URL, 'url' => DOKU_URL,
'name' => $conf['title'], 'name' => $conf['title'],
@ -214,7 +214,7 @@ class helper_plugin_semantic extends DokuWiki_Plugin
$wiki_logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/logo.png'), true, $wiki_logo_info); $wiki_logo = tpl_getMediaFile(array(':wiki:logo.png', ':logo.png', 'images/logo.png'), true, $wiki_logo_info);
$json_ld = array( $json_ld = array(
'@context' => 'http://schema.org', '@context' => 'http://schema.org/',
'@type' => $type, '@type' => $type,
'headline' => $title, 'headline' => $title,
'name' => $title, 'name' => $title,
@ -263,7 +263,7 @@ class helper_plugin_semantic extends DokuWiki_Plugin
if ($author = $this->getAuthor()) { if ($author = $this->getAuthor()) {
$json_ld['author'] = array( $json_ld['author'] = array(
'@context' => 'http://schema.org', '@context' => 'http://schema.org/',
'@type' => 'Person', '@type' => 'Person',
'name' => $author, 'name' => $author,
'email' => $user_data['mail'], 'email' => $user_data['mail'],
@ -275,7 +275,7 @@ class helper_plugin_semantic extends DokuWiki_Plugin
$contributor_data = ($this->getConf('hideMail') ? array('mail' => null) : $auth->getUserData($uid)); $contributor_data = ($this->getConf('hideMail') ? array('mail' => null) : $auth->getUserData($uid));
$json_ld['contributor'][] = array( $json_ld['contributor'][] = array(
'@context' => 'http://schema.org', '@context' => 'http://schema.org/',
'@type' => 'Person', '@type' => 'Person',
'name' => $fullname, 'name' => $fullname,
'email' => $contributor_data['mail'], 'email' => $contributor_data['mail'],
@ -314,7 +314,7 @@ class helper_plugin_semantic extends DokuWiki_Plugin
} }
$json_ld_webpage = array( $json_ld_webpage = array(
'@context' => 'http://schema.org', '@context' => 'http://schema.org/',
'@type' => 'WebPage', '@type' => 'WebPage',
); );